Commit 34e1216e authored by Loïc Chapron's avatar Loïc Chapron

Update Ris_To_GarganText.py

parent 74bc33a7
......@@ -39,8 +39,12 @@ def read_file(file):
month = tmp[1]
day = tmp[2]
else:
if doc.__contains__('year'):
year = doc['year'].replace('/', '').replace('.', '')
if doc.__contains__('year') :
tmp = doc['year'].replace('/', '').replace('.', '')
if tmp.isdigit():
year = tmp
else:
year = str(date.today().year)
else:
year = str(date.today().year)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment