modified abbjobs to expire in 60 days instead of 30
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user