add support to change database location

This commit is contained in:
2021-01-17 21:15:57 +08:00
parent 94b652736f
commit b7e3d3d018
4 changed files with 9 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ class settings:
self._sendFileURLScheme = bool(int(
d['sendFileURLScheme'])) if 'sendFileURLScheme' in d and d['sendFileURLScheme'].isnumeric() else False
self._rssbotLib = d['rssbotLib'] if 'rssbotLib' in d and d['rssbotLib'] != '' else None
self._databaseLocation = d['databaseLocation'] if 'databaseLocation' in d and d['databaseLocation'] != '' else 'data.db'
class commandline: