From 31d5fbbf17edb8de06ca2afa92ad00b18a01d7f0 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 8 Jun 2022 19:04:06 -0700 Subject: [PATCH] Update config.py --- archivebox/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebox/config.py b/archivebox/config.py index a94c94c9..7cecc7d2 100644 --- a/archivebox/config.py +++ b/archivebox/config.py @@ -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 ###########################