X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reload_db.py;h=f6dff81d39e69b6fa6e3d5b95520ff594bacb6a4;hb=4e7394a7e103cf0633cc9c42d9959aa94f2d7c9a;hp=ee51b392aedb6048c6cf4dada016ae7cb7f930dd;hpb=161060b2c24bd37d7cd11f74297790dbe93504be;p=xsetbg.git diff --git a/reload_db.py b/reload_db.py index ee51b39..f6dff81 100755 --- a/reload_db.py +++ b/reload_db.py @@ -46,7 +46,8 @@ with SQLiteMassInsert() as txn: count_new += 1 else: assert id is None or row.id == id - assert row.last_shown == timestamp + if row.last_shown is not None: + assert row.last_shown == timestamp count_old += 1 dump_file.close()