darkpixel / statuspage

A simple self-hosted status page site with an API written in Django under the BSD license
https://darkpixel.github.com/statuspage/
BSD 3-Clause "New" or "Revised" License
112 stars 23 forks source link

Updated incidents not displaying #12

Closed darkpixel closed 9 years ago

darkpixel commented 9 years ago

Incidents that have been updated recently, but created more than a week ago are not showing up in the list.

kwargs.update({'incident_list': Incident.objects.filter(created__gt=date.today() - timedelta(days=7))})

should be

kwargs.update({'incident_list': Incident.objects.filter(updated__gt=date.today() - timedelta(days=7))})