mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 05:08:28 +03:00
enables api_db cache queries if configured with new option (#113)
This commit is contained in:
committed by
GitHub
parent
3e56ef137d
commit
6f36e92e02
@@ -24,7 +24,7 @@ class CSVDb(Database):
|
||||
"csv_file": {"default": "db.csv", "help": "CSV file name"}
|
||||
}
|
||||
|
||||
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}")
|
||||
is_empty = not os.path.isfile(self.csv_file) or os.path.getsize(self.csv_file) == 0
|
||||
|
||||
Reference in New Issue
Block a user