reverted views.py changes

This commit is contained in:
Thomas Maddox 2013-04-29 13:49:16 -05:00
parent 6fa8044625
commit b7b712e22b

View File

@ -450,9 +450,7 @@ def latest_raw(request, deployment_id):
"""This is the 2sec ticker that updates the Recent Activity box."""
deployment_id = int(deployment_id)
c = _default_context(request, deployment_id)
#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)
then = datetime.datetime.utcnow() - datetime.timedelta(hours=1)
thend = dt.dt_to_decimal(then)
query = models.RawData.objects.select_related().filter(when__gt=thend)
if deployment_id > 0: