This commit is contained in:
C committed 2026-01-04 11:27:25 -08:00
1 parent d341684567
commit 8e21780fb4
1 file changed
+7 -21
+7 -21
View File
@@ -54,29 +54,15 @@ UA = re.compile(r"^kopling\/?", re.IGNORECASE)
async def run_update(): async def run_update():
set_list = await sq.acat2id(SQUARE_LEGO_CAT_ID) # type: ignore """
# print(f"[@DEBUG]\t {set_list}") # type: ignore DEPRECATED: Use glue.enrich_bulk() instead
for l_set in set_list:
# print(f"[@DEBUG]{l_set}")
try:
l_setinfo = await lego.throttled_get_set(l_set["number"])
print(f"[@DEBUG] Found {l_setinfo["pw_name"]}")
except Exception as e:
print(f"Error fetching set\t: {l_set}: {str(e)}")
continue
# print(f"[@DEBUG]{l_setinfo}") Legacy RUNUPDATE command handler - kept for backwards compatibility
# await sq.update_itm(l_set, l_setinfo) but now delegates to the new glue.enrich_bulk() function
"""for l_set in set_list: """
print(f"[@DEBUG]{l_set}") from src import glue
try:
l_setinfo = await lego.throttled_get_set(l_set["number"])
except Exception as e:
print(f"Error fetching set\t: {l_set}: {str(e)}")
continue
print(f"[@DEBUG]{l_setinfo}")""" await glue.enrich_bulk()
# await sq.update_itm(l_set, l_setinfo)
def valid_uuid(val): def valid_uuid(val):