diff options
Diffstat (limited to 'framework/database.py')
-rw-r--r-- | framework/database.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/database.py b/framework/database.py index fb7b1e3..9ab2983 100644 --- a/framework/database.py +++ b/framework/database.py @@ -27,14 +27,12 @@ import xdg.BaseDirectory as xdg __all__ = ['load'] -databaseFile = path.join(xdg.save_data_path('robyn'), 'results.db') - -def load(): +def load(config): '''Load the results database, creating it if it doesn't exist. Will exit the program if it fails.''' try: - connection = apsw.Connection(databaseFile) + connection = apsw.Connection(config['options']['database']) cursor = connection.cursor() cursor.execute('''CREATE TABLE IF NOT EXISTS runs |