remove deprecated warn

This commit is contained in:
Hay1tsme
2025-02-21 23:51:59 -05:00
parent d4394788b7
commit 0f52b89033
22 changed files with 79 additions and 79 deletions

View File

@@ -514,7 +514,7 @@ class Mai2Base:
continue # present period hasn't started yet, move onto the next one
if (present['endDate'] and present['endDate'].timestamp() < datetime.now().timestamp()):
self.logger.warn(f"Present {present['id']} ended on {present['endDate']} and should be removed")
self.logger.warning(f"Present {present['id']} ended on {present['endDate']} and should be removed")
continue # present period ended, move onto the next one
test = await self.data.item.get_item(data["userId"], present['itemKind'], present['itemId'])

View File

@@ -212,7 +212,7 @@ class Mai2Frontend(FE_Base):
elif o < 0x7F and o > 0x20:
new_name_full += chr(o + 0xFEE0)
elif o <= 0x7F:
self.logger.warn(f"Invalid ascii character {o:02X}")
self.logger.warning(f"Invalid ascii character {o:02X}")
return RedirectResponse("/gate/?e=4", 303)
else:
new_name_full += x