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>
This commit is contained in:
parent
37d22dfaad
commit
89559364cf
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue