modified abbjobs to expire in 60 days instead of 30

This commit is contained in:
Sika Production
2016-09-23 15:41:19 +03:00
parent 908315999b
commit 380f3c658f
+1 -1
View File
@@ -19,7 +19,7 @@ def default(request,*args,**kwargs):
# send abb jobs which have been created less than month ago
@require_http_methods(["GET"])
def abb_job_list(request, *args, **kwargs):
limit = timezone.now() - timedelta(days=30)
limit = timezone.now() - timedelta(days=60)
jobs = ABBJob.objects.filter(created__gt=limit)
joblist = list(map(lambda j:j.get_dict(), jobs))
return HttpResponse(json.dumps(joblist))