X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=reload_db.py;h=f6dff81d39e69b6fa6e3d5b95520ff594bacb6a4;hp=ee51b392aedb6048c6cf4dada016ae7cb7f930dd;hb=0c025723c34e9be1993b0e8f2a597a09fcd31d22;hpb=2f99c9bc2e47a031db73de534ff56fec6788854e 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()