X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reload_db.py;h=3c9c56e64ef3d26ca6fcc0f3cd9f9589309fff4d;hb=5be27ee9d6b805200db0295a9426d22159336cbe;hp=ee51b392aedb6048c6cf4dada016ae7cb7f930dd;hpb=161060b2c24bd37d7cd11f74297790dbe93504be;p=xsetbg.git diff --git a/reload_db.py b/reload_db.py index ee51b39..3c9c56e 100755 --- a/reload_db.py +++ b/reload_db.py @@ -5,10 +5,6 @@ This file is a part of XSetBg. """ -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2007-2015 PhiloSoft Design" -__license__ = "GNU GPL" - import sys from sqlobject import SQLObjectNotFound from sqlobject.sqlbuilder import Insert @@ -46,7 +42,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()