mirror of
https://github.com/nicholaswilde/recipes.git
synced 2026-08-18 02:54:22 +00:00
feat: update Sweet Potato Soyrizo Hash recipe from issue #1419
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,3 +12,5 @@ settings.json
|
||||
.clinerules/
|
||||
.cursor/
|
||||
.windsurf/
|
||||
.scratch/
|
||||
.test_images/
|
||||
|
||||
@ -3,7 +3,8 @@ comments: true
|
||||
tags:
|
||||
|
||||
- breakfast
|
||||
hero: assets/images/applied-sweet-potato-soyrizo-hash.webp
|
||||
hero: https://github.com/user-attachments/assets/fa8e0c31-d7dc-4660-be41-3a874488b873
|
||||
{ loading=lazy }
|
||||
---
|
||||
|
||||
# :sweet_potato: Applied Sweet Potato Soyrizo Hash
|
||||
|
||||
Binary file not shown.
@ -1,34 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# find_multi_serves.py
|
||||
# ----------------
|
||||
# Find recipes with multiple servings
|
||||
#
|
||||
# @author nιcнolaѕ wιlde, 0x08b7d7a3
|
||||
# @date 12 Jun 2026
|
||||
# @version 0.1.0
|
||||
#
|
||||
################################################################################
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
docs_dir = "docs"
|
||||
matching_files = []
|
||||
|
||||
for root, dirs, files in os.walk(docs_dir):
|
||||
for file in files:
|
||||
if file.endswith(".md"):
|
||||
filepath = os.path.join(root, file)
|
||||
with open(filepath, "r", encoding="utf-8") as f:
|
||||
content = f.read()
|
||||
|
||||
# Count the occurrences of the Serves icon table header
|
||||
# E.g. "| :fork_and_knife_with_plate: Serves |" or "Serves" in table headers
|
||||
matches = re.findall(r'\|\s*:fork_and_knife_with_plate:\s*Serves\s*\|', content)
|
||||
if len(matches) > 1:
|
||||
matching_files.append((filepath, len(matches)))
|
||||
|
||||
print("Files with multiple Serves table headers:")
|
||||
for path, count in sorted(matching_files, key=lambda x: x[1], reverse=True):
|
||||
print(f" - {path} ({count} occurrences)")
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 282 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 695 KiB |
Reference in New Issue
Block a user