fix search indexing
This commit is contained in:
parent
9971671688
commit
ff9414f5a9
@ -6,7 +6,7 @@ import re
|
|||||||
|
|
||||||
SEARCH_DB_NAME = 'search.db'
|
SEARCH_DB_NAME = 'search.db'
|
||||||
ACCESS_LOG_DB_NAME = 'access_log.db'
|
ACCESS_LOG_DB_NAME = 'access_log.db'
|
||||||
FOLDER_CONFIG = 'folder_permission_config.json'
|
FOLDER_CONFIG = 'folder_secret_config.json'
|
||||||
|
|
||||||
# Connect to the search database.
|
# Connect to the search database.
|
||||||
search_db = sqlite3.connect(SEARCH_DB_NAME, check_same_thread=False)
|
search_db = sqlite3.connect(SEARCH_DB_NAME, check_same_thread=False)
|
||||||
@ -247,7 +247,6 @@ def convert_dates(search_db,
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
search_db.commit()
|
search_db.commit()
|
||||||
search_db.close()
|
|
||||||
print(f"Converted {converted_count} rows to ISO format.")
|
print(f"Converted {converted_count} rows to ISO format.")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user