mai2: properly add present items

This commit is contained in:
Kevin Trocolli committed 2024-06-28 23:55:23 -04:00
1 parent af8bd1d1c0
commit ecb2e9ec75
2 files changed
+11 -6

No files matched your search

-1
View File
@@ -490,7 +490,6 @@ class Mai2Base:
pres_id += present['itemId']
items.append({"itemId": pres_id, "itemKind": 4, "stock": present['stock'], "isValid": True})
self.logger.info(f"Give user {data['userId']} {present['stock']}x item {present['itemId']} (kind {present['itemKind']}) as present")
await self.data.item.put_item(data["userId"], present['itemKind'], present['itemId'], present['stock'], True)
return { "userId": data.get("userId", 0), "length": len(items), "userPresentList": items}