reverted views.py changes
This commit is contained in:
@@ -450,9 +450,7 @@ def latest_raw(request, deployment_id):
|
|||||||
"""This is the 2sec ticker that updates the Recent Activity box."""
|
"""This is the 2sec ticker that updates the Recent Activity box."""
|
||||||
deployment_id = int(deployment_id)
|
deployment_id = int(deployment_id)
|
||||||
c = _default_context(request, deployment_id)
|
c = _default_context(request, deployment_id)
|
||||||
#then = datetime.datetime.utcnow() - datetime.timedelta(hours=1)
|
then = datetime.datetime.utcnow() - datetime.timedelta(hours=1)
|
||||||
#comment out below line and uncomment above line before commit; for local dev environment!!!!
|
|
||||||
then = datetime.datetime.utcnow() - datetime.timedelta(hours=24)
|
|
||||||
thend = dt.dt_to_decimal(then)
|
thend = dt.dt_to_decimal(then)
|
||||||
query = models.RawData.objects.select_related().filter(when__gt=thend)
|
query = models.RawData.objects.select_related().filter(when__gt=thend)
|
||||||
if deployment_id > 0:
|
if deployment_id > 0:
|
||||||
|
Reference in New Issue
Block a user