From f0668c3642acee4c1431671a192e01daa2e9ee32 Mon Sep 17 00:00:00 2001 From: Arvind Date: Mon, 10 Mar 2014 18:53:54 +0530 Subject: [PATCH] Fixing typo and removing unused code and modules. --- query.py | 12 ------------ report.py | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/query.py b/query.py index 3a655f6..d175a81 100644 --- 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.""" diff --git a/report.py b/report.py index c289d4c..104f644 100644 --- a/report.py +++ b/report.py @@ -71,7 +71,7 @@ def genJSON(): "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), -- 1.7.10.4