Breed Enricher: sqlite3.Row zu dict konvertieren in _enrich_one
This commit is contained in:
parent
77f6af8817
commit
0af3078a2a
1 changed files with 2 additions and 1 deletions
|
|
@ -386,8 +386,9 @@ async def _haiku_complete(prompt: str) -> str:
|
|||
return resp.content[0].text.strip()
|
||||
|
||||
|
||||
async def _enrich_one(rasse: dict, dry_run: bool = False) -> bool:
|
||||
async def _enrich_one(rasse, dry_run: bool = False) -> bool:
|
||||
"""Reichert eine einzelne Rasse an. Gibt True zurück wenn erfolgreich."""
|
||||
rasse = dict(rasse)
|
||||
name = rasse["name"]
|
||||
name_de = rasse.get("name_de")
|
||||
rasse_id = rasse["id"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue