Commit 8e85d913 authored by Anne-Laure Thomas Derepas's avatar Anne-Laure Thomas Derepas

Merge branch 'dev' into 'master'

Dev

See merge request athomas/gargantexternal-tools!15
parents 5635c954 0ab307a9
...@@ -39,8 +39,12 @@ def read_file(file): ...@@ -39,8 +39,12 @@ def read_file(file):
month = tmp[1] month = tmp[1]
day = tmp[2] day = tmp[2]
else: else:
if doc.__contains__('year'): if doc.__contains__('year') :
year = doc['year'].replace('/', '').replace('.', '') tmp = doc['year'].replace('/', '').replace('.', '')
if tmp.isdigit():
year = tmp
else:
year = str(date.today().year)
else: else:
year = str(date.today().year) 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