fix emojis

This commit is contained in:
Aron Petau 2026-01-02 11:23:35 +01:00
parent c45c6992ae
commit 287b1b154f
5 changed files with 39 additions and 32 deletions

View file

@ -151,7 +151,7 @@ class WGCompanyNotifier:
if listing['id'] not in previous:
new.append(listing)
if new:
logger.info(f"[WG] 🏠 {len(new)} new listing{'s' if len(new) > 1 else ''} detected")
logger.info(f"[WG] {len(new)} new listing{'s' if len(new) > 1 else ''} detected")
return new
def log_listing_times(self, new_listings):
@ -185,7 +185,7 @@ class WGCompanyNotifier:
for idx, listing in enumerate(new_listings, start=1):
try:
message = (
f"🏠 <b>[WG-Company] Neues WG-Zimmer!</b>\n\n"
f"<b>[WG-Company] Neues WG-Zimmer!</b>\n\n"
f"🚪 <b>{listing['rooms']}</b>\n"
f"📏 {listing['size']}\n"
f"💰 {listing['price']}\n"
@ -196,7 +196,7 @@ class WGCompanyNotifier:
asyncio.run_coroutine_threadsafe(self.telegram_bot._send_message(message), loop)
await asyncio.sleep(0.5)
except Exception as e:
logger.error(f"[WG] Telegram failed for listing {idx}: {str(e)[:50]}")
logger.error(f"[WG] Telegram failed for listing {idx}: {str(e)[:50]}")
async def run(self):
await self.init_browser()