Commits

Nikolaj Sjujskij committed a8a4360

Use DATEFORMAT in querying for month data, not hardcoded string

Comments (0)

Files changed (1)

     else:
         today = None
     del replace_dict
-    monthstr = basedate.strftime("%%.%m.%Y")
+    monthstr = basedate.strftime(DATEFORMAT.replace("%d", "%%"))
 
     # calculate timestamp boundaries of the month
     clsd_after = calendar.timegm(