From: Vincent Le Gallic Date: Sun, 16 Feb 2014 00:22:08 +0000 (+0100) Subject: [client] wrong way around X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=217077347165e8521e4b4dad0717f000bdba9d6e;p=today.git [client] wrong way around fixes 4aab173ec192b225942118aef84c054c87491724 --- diff --git a/today.py b/today.py index 97fb8fa..2899ae1 100755 --- 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 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: