]> gitweb.pimeys.fr Git - today.git/commitdiff
[client] wrong way around
authorVincent Le Gallic <legallic@crans.org>
Sun, 16 Feb 2014 00:22:08 +0000 (01:22 +0100)
committerVincent Le Gallic <legallic@crans.org>
Sun, 16 Feb 2014 00:22:22 +0000 (01:22 +0100)
fixes 4aab173ec192b225942118aef84c054c87491724

today.py

index 97fb8fa92cd8a5e67fa975fa645962d8db01091d..2899ae159a18649a951a9c55c7f782c3d0bdedab 100755 (executable)
--- a/today.py
+++ b/today.py
@@ -70,7 +70,7 @@ def update_last_seen(newdict, lasts_seen=None):
             newdict[key] = lasts_published[key]
     # On convertit les chaînes en entier (pour les <last_id> il leur arrive rien)
     newdict = {k: int(v) for (k,v) in newdict.items()}
-    if not lasts_seen is None:
+    if lasts_seen is None:
         lasts_seen = get_last_seen()
     lasts_seen.update(newdict)
     with open(config.last_seen_file, "w") as f: