#47 Fix for single-element query results

Merged
aidmar.wainakh merged 1 commits from stefan.schmidt/query_fix into SPIN/master 6 years ago

The order of checks in process_db_query in StatsDatabase.py was triggering a TypeError-Exception for non-list results, which broke several queries (like "avg(ttlValue);"). Simply reordering the checks, such that len(results) is only executed if results is indeed a list, fixes these queries.

The order of checks in process_db_query in StatsDatabase.py was triggering a TypeError-Exception for non-list results, which broke several queries (like "avg(ttlValue);"). Simply reordering the checks, such that len(results) is only executed if results is indeed a list, fixes these queries.
This pull request has been merged successfully!
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.