fix indexing
This commit is contained in:
parent
fb15977924
commit
086d127792
@ -4,6 +4,7 @@ import sqlite3
|
||||
|
||||
SEARCH_DB_NAME = 'search.db'
|
||||
ACCESS_LOG_DB_NAME = 'access_log.db'
|
||||
FOLDER_CONFIG = 'folder_permission_config.json'
|
||||
|
||||
# Connect to the search database.
|
||||
search_db = sqlite3.connect(SEARCH_DB_NAME, check_same_thread=False)
|
||||
@ -69,7 +70,7 @@ def updatefileindex():
|
||||
cursor = search_db.cursor()
|
||||
|
||||
# Load folder configuration from JSON file.
|
||||
with open("folder_config.json", "r", encoding="utf-8") as f:
|
||||
with open(FOLDER_CONFIG, "r", encoding="utf-8") as f:
|
||||
config_data = json.load(f)
|
||||
|
||||
# Process each configured base folder.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user