Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Correctly output all day events in the feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Aug 5, 2015
1 parent 6c331ed commit bbb208f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions onegov/town/tests/test_views.py
Expand Up @@ -959,11 +959,13 @@ def test_resource_slots(town_app):
assert client.get(url).json == [
{
'start': '2015-08-04T00:00:00+02:00',
'end': '2015-08-05T00:00:00+02:00'
'end': '2015-08-05T00:00:00+02:00',
'allDay': True
},
{
'start': '2015-08-05T00:00:00+02:00',
'end': '2015-08-06T00:00:00+02:00'
'end': '2015-08-06T00:00:00+02:00',
'allDay': True
}
]

Expand Down
3 changes: 2 additions & 1 deletion onegov/town/views/resource.py
Expand Up @@ -150,7 +150,8 @@ def view_allocations_json(self, request):
allocations.append(
{
'start': allocation.display_start().isoformat(),
'end': allocation.display_end().isoformat()
'end': allocation.display_end().isoformat(),
'allDay': allocation.whole_day
}
)

Expand Down

0 comments on commit bbb208f

Please sign in to comment.