split folder into db and results

This commit is contained in:
relikd
2021-02-12 00:54:50 +01:00
parent a9d4085a4b
commit 1c27f17677
15 changed files with 24 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ class InterruptIndices(object):
@staticmethod
def write(dbname='db_indices'):
with open(LPath.InterruptDB(dbname), 'w') as f:
with open(LPath.db(dbname), 'w') as f:
f.write('# file | total runes in file | interrupt | indices\n')
for name in FILES_ALL:
data = load_indices(LPath.page(name), 0)
@@ -42,7 +42,7 @@ class InterruptIndices(object):
@staticmethod
def load(dbname='db_indices'):
with open(LPath.InterruptDB(dbname), 'r') as f:
with open(LPath.db(dbname), 'r') as f:
ret = {}
for line in f.readlines():
if line.startswith('#'):