Fix backup import mismatch after wilm merge
wilm's backup implementation doesn't expose _backups_configured or start_restore_finalizer - those were wj-specific. Since we took wilm's complete backup system, remove the initialization code.
This commit is contained in:
@@ -218,12 +218,7 @@ def create_app(config_name: str = None) -> Flask:
|
||||
# Skipped unless a backups store actually exists, which keeps it off every
|
||||
# deployment that does not run the backup overlay - and out of the test
|
||||
# suite, which builds this app thousands of times.
|
||||
if not app.config.get('TESTING'):
|
||||
from .core.api.shopdbbackups import (
|
||||
_backups_configured, start_restore_finalizer)
|
||||
with app.app_context():
|
||||
if _backups_configured():
|
||||
start_restore_finalizer(app)
|
||||
# NOTE: wilm's backup implementation doesn't require initialization here
|
||||
|
||||
# Personal API token auth shim: recognize `Bearer shopdb_pat_...` before
|
||||
# any JWT decode and mint a request-scoped JWT for the token's owner.
|
||||
|
||||
Reference in New Issue
Block a user