gui: fix categorization of drawings

Using the year/month as key only works if both are expanded properly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/145/head
Peter Hutterer 2019-08-08 13:26:08 +10:00
parent 37d22dfaad
commit 89559364cf
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class DrawingPerspective(Gtk.Stack):
def _update_drawings(self, config, pspec):
def _hash(drawing):
return time.strftime('Y%m', time.gmtime(drawing.timestamp))
return time.strftime('%Y%m', time.gmtime(drawing.timestamp))
for js in config.drawings:
ts = js['timestamp']