File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ def __init__(self) -> None:
6666 db_path = urlsplit (settings .importEHdb_database_URI ).path
6767 if Path (db_path ).exists ():
6868 self .con = sqlite3 .connect (settings .importEHdb_database_URI , uri = True , check_same_thread = False )
69+ # Check if the database is out of date
70+ if self .con .execute ("SELECT posted FROM gallery INDEXED BY gallery_posted ORDER BY posted DESC LIMIT 1" ).fetchone ()[0 ] < 1705903491 :
71+ logger .warning ("There is a new version of api_dump.sqlite, you can download it from https://sukebei.nyaa.si/user/gipaf23445" )
6972 # Build cache during the first run
7073 if settings .importEHdb_matchtitle :
7174 req_title2gid_index = self .con .execute (f"SELECT name FROM sqlite_master WHERE type='index' AND name=?" , (title2gid_index ,)).fetchone () is None
You can’t perform that action at this time.
0 commit comments