mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 16:44:16 +02:00
[appimage] improvements -> database files only updated when expired
This commit is contained in:
@@ -4,9 +4,8 @@ from bauh.gems.appimage import CONFIG_FILE
|
||||
|
||||
def read_config(update_file: bool = False) -> dict:
|
||||
default = {
|
||||
'db_updater': {
|
||||
'interval': 60 * 20,
|
||||
'enabled': True
|
||||
'database': {
|
||||
'expiration': 60
|
||||
}
|
||||
}
|
||||
return read(CONFIG_FILE, default, update_file=update_file)
|
||||
|
||||
Reference in New Issue
Block a user