Commit c4e32a50 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Query for greater since or equal

parent d79b5e16
......@@ -91,7 +91,7 @@ def list_images(request, detail=False):
since = isoparse(request.GET.get('changes-since'))
if since:
avail_images = Image.objects.filter(updated__gt=since)
avail_images = Image.objects.filter(updated__gte=since)
if not avail_images:
return HttpResponse(status=304)
else:
......
......@@ -120,7 +120,7 @@ def list_servers(request, detail=False):
since = isoparse(request.GET.get('changes-since'))
if since:
user_vms = VirtualMachine.objects.filter(updated__gt=since)
user_vms = VirtualMachine.objects.filter(updated__gte=since)
if not user_vms:
return HttpResponse(status=304)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment