...
 
Commits (2)
Title:Défense verbale
Date: 2020/03/30
Time: 19h00
Time: 19h00 à 22h00
Slug: xx-time-defenseverbale
Event_type: Atelier pratique avec Garance asbl <br/> gratuit mais réservation indispensable - nombre de participantes limité <br/> Atelier annulé
Length: 3 heures
Status: draft
Color: #ffffff
......
......@@ -16,7 +16,7 @@ time_chunk_patt = r'(\d+)(?:\:|h)(\d+)?'
# Recognize time part in the description
# \2 (group 2) is the separator, as to have the same separator in the match
time_patt = r'(\d+(:|h)(?:\d+)?)(?:\s*(?:→|au|->)\s*)?(\d+\2(?:\d+)?)?'
time_patt = r'(\d+(:|h)(?:\d+)?)(?:\s*(?:→|au|->)\s*)?(\d+\2(?:\d+)?)?'
# \2 (group 2) is the separator, as to have the same separator in the match
date_range_patt = r'(\d+([/\-\.\s])\d+\2\d+)(?:\s*(?:→|au|->)\s*)(\d+\2\d+\2\d+)'
......@@ -67,6 +67,23 @@ def parse_date_line (line):
return date
"""
For future if there is a different time per event?
Date formatting
'dates': [
{
'date': date,
'time': (time,) | (time,time)
},
{
'start_date': date,
'end_date': date,
'time': (time,) | (time,time)
},
]
"""
def parse_dates (generator, metadata):
if 'dates' in metadata:
dates = metadata['dates']
......