Public Access
feat(meals): enforce three lower-calorie dinners with media
This commit is contained in:
@@ -50,7 +50,15 @@ def search_recipe(name: str) -> dict | None:
|
||||
return results[0] if results else None
|
||||
|
||||
|
||||
def main() -> None:
|
||||
def main() -> int:
|
||||
log.error(
|
||||
"Retired: persistent Spoonacular enrichment is not permitted. "
|
||||
"Use the staged Wikibooks import workflow."
|
||||
)
|
||||
return 2
|
||||
|
||||
|
||||
def _legacy_main() -> None:
|
||||
if not SPOONACULAR_KEY:
|
||||
log.error("SPOONACULAR_API_KEY not set")
|
||||
sys.exit(1)
|
||||
@@ -117,4 +125,4 @@ def main() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
raise SystemExit(main())
|
||||
|
||||
@@ -116,6 +116,14 @@ def import_recipe(external_id: str, query: str) -> str:
|
||||
|
||||
|
||||
def main() -> int:
|
||||
log.error(
|
||||
"Retired: direct Spoonacular publication is disabled. "
|
||||
"Use the staged Wikibooks import workflow."
|
||||
)
|
||||
return 2
|
||||
|
||||
|
||||
def _legacy_main() -> int:
|
||||
if not SPOONACULAR_KEY:
|
||||
log.error("SPOONACULAR_API_KEY not set. export it from /home/peter/MealPlanner/.env first.")
|
||||
return 2
|
||||
|
||||
@@ -116,6 +116,14 @@ def import_recipe(external_id: str) -> str:
|
||||
|
||||
|
||||
def main() -> int:
|
||||
log.error(
|
||||
"Retired: direct Spoonacular publication is disabled. "
|
||||
"Use the staged Wikibooks import workflow."
|
||||
)
|
||||
return 2
|
||||
|
||||
|
||||
def _legacy_main() -> int:
|
||||
if not SPOONACULAR_KEY:
|
||||
log.error("SPOONACULAR_API_KEY not set. export it from /home/peter/MealPlanner/.env first.")
|
||||
return 2
|
||||
|
||||
Reference in New Issue
Block a user