summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosue Kouka <jkouka@entrouvert.com>2017-08-17 10:04:22 (GMT)
committerJosue Kouka <jkouka@entrouvert.com>2017-08-17 10:04:22 (GMT)
commit8081bae6f2ada0d0287da1c1ea31604e22fffcf1 (patch)
treeede7f892f4bb42ff2f48015d054a93af2220d521
parente51f548c10a88acadf1732b03a8304ba33c0e804 (diff)
downloadconcerto2chronoformat-8081bae6f2ada0d0287da1c1ea31604e22fffcf1.zip
concerto2chronoformat-8081bae6f2ada0d0287da1c1ea31604e22fffcf1.tar.gz
concerto2chronoformat-8081bae6f2ada0d0287da1c1ea31604e22fffcf1.tar.bz2
set minimal and maximal booking delay
-rwxr-xr-xconcerto_2_chrono_format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/concerto_2_chrono_format.py b/concerto_2_chrono_format.py
index 0843929..afb4552 100755
--- a/concerto_2_chrono_format.py
+++ b/concerto_2_chrono_format.py
@@ -131,7 +131,7 @@ class ConcertoFormatter(object):
for nursery, events in groupby(data, lambda x: x['LIB_NOM_LIE']):
nursery_slug = slugify(nursery)
agenda = {'slug': nursery_slug, 'label': unicode(nursery, errors='replace'),
- 'events': [], 'kind': 'events'}
+ 'events': [], 'kind': 'events', 'minimal_booking_delay': 0, 'maximal_booking_delay': 30}
agenda['permissions'] = {'edit': None, 'view': None}
for event in events:
event_day = datetime.datetime.strptime(event['DAT_JOUR_TMP'], '%Y%m%d')