Commit f4cb6877 authored by sberna's avatar sberna

Update opendata date format in opendata page/2

parent 3463b24f
......@@ -674,7 +674,7 @@ class OpendataView(TemplateView):
if file_path:
import datetime
import re
match ='\_((201\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01]))\.', file_path)
match ='\_((202\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01]))\.', file_path)
if match:
file_date = datetime.datetime.strptime(, '%Y%m%d')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment