mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
Update config.py
This commit is contained in:
parent
6b019da3e9
commit
31d5fbbf17
1 changed files with 3 additions and 3 deletions
|
@ -1006,9 +1006,9 @@ if not CONFIG['CHECK_SSL_VALIDITY']:
|
|||
|
||||
# get SQLite database version, compile options, and runtime options
|
||||
cursor = sqlite3.connect(':memory:').cursor()
|
||||
config['SQLITE_VERSION'] = cursor.execute("SELECT sqlite_version();").fetchone()[0]
|
||||
config['SQLITE_JOURNAL_MODE'] = cursor.execute('PRAGMA journal_mode;').fetchone()[0]
|
||||
config['SQLITE_OPTIONS'] = [option[0] for option in cursor.execute('PRAGMA compile_options;').fetchall()]
|
||||
DYNAMIC_CONFIG_SCHEMA['SQLITE_VERSION'] = lambda c: cursor.execute("SELECT sqlite_version();").fetchone()[0]
|
||||
DYNAMIC_CONFIG_SCHEMA['SQLITE_JOURNAL_MODE'] = lambda c: cursor.execute('PRAGMA journal_mode;').fetchone()[0]
|
||||
DYNAMIC_CONFIG_SCHEMA['SQLITE_OPTIONS'] = lambda c: [option[0] for option in cursor.execute('PRAGMA compile_options;').fetchall()]
|
||||
cursor.close()
|
||||
|
||||
########################### Config Validity Checkers ###########################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue