Skip to content
Snippets Groups Projects
Commit 8d4bd685 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

refactor: change default program duration from 1 week to 1 day

parent e5257db2
No related branches found
No related tags found
1 merge request!52new program endpoint
...@@ -725,7 +725,7 @@ def generate_program_entries( ...@@ -725,7 +725,7 @@ def generate_program_entries(
if start is None: if start is None:
start = timezone.now() start = timezone.now()
if end is None: if end is None:
end = start + timedelta(days=7) end = start + timedelta(days=1)
queryset = queryset.filter(start__gte=start, start__lt=end) queryset = queryset.filter(start__gte=start, start__lt=end)
if not include_virtual: if not include_virtual:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment