local changes
This commit is contained in:
@@ -197,7 +197,7 @@ if __name__ == '__main__':
|
||||
|
||||
if store_report:
|
||||
values = {'json': json.dumps(raw_report),
|
||||
'created': float(dt.dt_to_decimal(datetime.datetime.utcnow())),
|
||||
'created': dt.dt_to_decimal(datetime.datetime.utcnow()),
|
||||
'period_start': start,
|
||||
'period_end': end,
|
||||
'version': 1,
|
||||
|
||||
@@ -383,8 +383,8 @@ def do_jsonreports(request):
|
||||
now = datetime.datetime.utcnow()
|
||||
yesterday = dt.dt_to_decimal(yesterday)
|
||||
now = dt.dt_to_decimal(now)
|
||||
_from = float(request.GET.get('created_from', yesterday))
|
||||
_to = float(request.GET.get('created_to', now))
|
||||
_from = request.GET.get('created_from', yesterday)
|
||||
_to = request.GET.get('created_to', now)
|
||||
reports = models.JsonReport.objects.filter(created__gte=_from,
|
||||
created__lte=_to)
|
||||
results = []
|
||||
|
||||
Reference in New Issue
Block a user