X-Git-Url: http://gitweb.pimeys.fr/?p=today.git;a=blobdiff_plain;f=today.py;h=2899ae159a18649a951a9c55c7f782c3d0bdedab;hp=97fb8fa92cd8a5e67fa975fa645962d8db01091d;hb=217077347165e8521e4b4dad0717f000bdba9d6e;hpb=7df038370567352136b2e6fd749bc495d216a06b 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: