mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-01 13:33:11 -05:00
fix: Reprocess script UUID handling for postgres (#6705)
This commit is contained in:
@@ -62,7 +62,7 @@ def fetch_recipe_ids(force_all: bool = False) -> set[UUID4]:
|
|||||||
with session_context() as session:
|
with session_context() as session:
|
||||||
result = session.execute(sa.text(f"SELECT id FROM {RecipeModel.__tablename__}"))
|
result = session.execute(sa.text(f"SELECT id FROM {RecipeModel.__tablename__}"))
|
||||||
|
|
||||||
recipe_ids = {UUID4(row[0]) for row in result}
|
recipe_ids = {UUID4(str(row[0])) for row in result}
|
||||||
if force_all:
|
if force_all:
|
||||||
logger.info("!!Force processing all recipes regardless of current image state")
|
logger.info("!!Force processing all recipes regardless of current image state")
|
||||||
return recipe_ids
|
return recipe_ids
|
||||||
|
|||||||
Reference in New Issue
Block a user