misc fixes
This commit is contained in:
1 parent
67891e5222
commit
2308d183e9
2 files changed
+16
-4
No files matched your search
+14
-3
@@ -11,8 +11,8 @@ import re
|
||||
import logging
|
||||
from logging.handlers import RotatingFileHandler
|
||||
from pathlib import Path
|
||||
print("Creating log directory if it doesn't exist...")
|
||||
Path("./logs/").mkdir(parents=True, exist_ok=True)
|
||||
#print("Creating log directory if it doesn't exist...")
|
||||
#Path("./logs/").mkdir(parents=True, exist_ok=True)
|
||||
|
||||
import banner
|
||||
import get_sq_env
|
||||
@@ -47,7 +47,18 @@ UA = re.compile(r"^kopling\/?", re.IGNORECASE)
|
||||
|
||||
async def run_update():
|
||||
set_list = await sq.acat2id(SQUARE_LEGO_CAT_ID)
|
||||
print(f"[@DEBUG]\t {set_list}") # type: ignore
|
||||
#print(f"[@DEBUG]\t {set_list}") # type: ignore
|
||||
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}")
|
||||
#await sq.update_itm(l_set, l_setinfo)
|
||||
"""for l_set in set_list:
|
||||
print(f"[@DEBUG]{l_set}")
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user