--- a/query.py +++ b/query.py @@ -1,18 +1,6 @@ import logger from sqlalchemy.sql import func import datetime -import decimal - -def toStr(fn): - def wrapped(*args, **kwargs): - response = fn(*args, **kwargs) - if type(response) is decimal.Decimal: - return str(response) - if type(response) is dict: - return repr(response) - else: - return str(response) - return wrapped class Query: """Objects of query class can be used to run specific queries.""" --- a/report.py +++ b/report.py @@ -71,7 +71,7 @@ "Number_of_calls_lasting_less_than_30_seconds": callDetails.filter_calls_by_duration(startDate, endDate, 30), - "Average_length_of_calls": average_call_length, + "Average_length_of_calls_in_minutes": average_call_length, "Total_number_of_audio_minutes_played": str(audio_minutes),