Further fixes/changes to loading 'types' for config + manifest edits

This commit is contained in:
Patrick Robertson
2025-01-27 11:48:04 +01:00
parent 14e2479599
commit 7fd95866a1
29 changed files with 39 additions and 143 deletions

View File

@@ -4,6 +4,7 @@
"requires_setup": False,
"external_dependencies": {"python": ["loguru"]
},
'entry_point': 'csv_db::CSVDb',
"configs": {
"csv_file": {"default": "db.csv", "help": "CSV file name"}
},

View File

@@ -11,13 +11,6 @@ class CSVDb(Database):
"""
Outputs results to a CSV file
"""
name = "csv_db"
def __init__(self, config: dict) -> None:
# without this STEP.__init__ is not called
super().__init__(config)
self.assert_valid_string("csv_file")
def done(self, item: Metadata, cached: bool=False) -> None:
"""archival result ready - should be saved to DB"""