Store factions/reputation information in a file instead of memory.

master
Nicolas Weeger 2021-05-28 19:14:59 +02:00
parent c034c8b538
commit f5f6429bf9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def _init_db():
schema_files = map(_get_sql_path, ["schema.sql"])
init_files = map(_get_sql_path, ["init.sql", "gods.sql"])
db_path = os.path.join(Crossfire.LocalDirectory(), "factions.db")
con = sqlite3.connect(':memory:')
con = sqlite3.connect(db_path)
_init_schema(con, 1, *schema_files)
for f in init_files:
with open(f) as initfile: