enables api_db cache queries if configured with new option (#113)

This commit is contained in:
Miguel Sozinho Ramalho
2023-12-12 19:20:26 +00:00
committed by GitHub
parent 3e56ef137d
commit 6f36e92e02
8 changed files with 40 additions and 12 deletions

View File

@@ -27,6 +27,6 @@ class ConsoleDb(Database):
def aborted(self, item: Metadata) -> None:
logger.warning(f"ABORTED {item}")
def done(self, item: Metadata) -> None:
def done(self, item: Metadata, cached: bool=False) -> None:
"""archival result ready - should be saved to DB"""
logger.success(f"DONE {item}")