From 89559364cfb359ada090b393a801eca8cd889f77 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 8 Aug 2019 13:26:08 +1000 Subject: [PATCH] gui: fix categorization of drawings Using the year/month as key only works if both are expanded properly. Signed-off-by: Peter Hutterer --- tuhigui/drawingperspective.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhigui/drawingperspective.py b/tuhigui/drawingperspective.py index bfc5549..e0eb307 100644 --- a/tuhigui/drawingperspective.py +++ b/tuhigui/drawingperspective.py @@ -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']