misc fixes

This commit is contained in:
C committed 2025-10-26 15:48:17 -07:00
1 parent 9804b6d673
commit fb908e00b7
2 files changed
+16 -4

No files matched your search

+2 -1
View File
@@ -53,7 +53,7 @@ class AsyncBricksetAPI:
self.logger.info("Successfully authenticated with Brickset API")
return result
async def get_set(self, set_number: str) -> Dict[str, Any]:
async def get_set(self, set_number: int) -> Dict[str, Any]:
"""
Fetch LEGO set information asynchronously
@@ -72,6 +72,7 @@ class AsyncBricksetAPI:
"userHash": self.user_hash,
"params": json.dumps({"setNumber": f"{set_number}-1"}),
}
print(f"[@DEBUG] {params}...")
async with aiohttp.ClientSession() as session:
async with session.get(