fixing older db entries formats (#114)

This commit is contained in:
Miguel Sozinho Ramalho
2023-12-12 22:47:54 +00:00
committed by GitHub
parent 6f36e92e02
commit 98fb574d89
3 changed files with 5 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ class AAApiDb(Database):
if response.status_code == 200:
logger.success(f"API returned a previously archived instance: {response.json()}")
# TODO: can we do better than just returning the first result?
# TODO: can we do better than just returning the most recent result?
return Metadata.from_dict(response.json()[0]["result"])
logger.error(f"AA API FAIL ({response.status_code}): {response.json()}")