Consolidate data retrieval functions in SQLparsing.py. There are a lot of functions that build a query string to retrieve data from the database and then do the following:
db.query(query) result = db.store_result() row = result.fetch_row() results = [] while row: results.append(row[0][0]) row = result.fetch_row() return results
This code can be move to a central utility function, which will save a lot of space and make the code more readable and maintainable.
Anonymous