From 321f88f16af3528ba0f7814d9bf55cb0e2c488d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20S=C3=A1nchez?= Date: Wed, 20 Oct 2021 13:25:01 +0200 Subject: [PATCH] fix emoji order --- autoficher.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/autoficher.py b/autoficher.py index 77b32d9..04d095b 100755 --- a/autoficher.py +++ b/autoficher.py @@ -161,12 +161,16 @@ class AutoFicher(): else: time = datetime.now().astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M") - rtext = 'fichado' - remoji = "🏡🏃‍♂️🏢🕐" + conditional_response = { + "text": "fichado", + "emoji": "🕐🏢🏃‍♂️🏡" + } if typ: - rtext = 'desfichado' - remoji = "🕐🏢🏃‍♂️🏡" - self.sendReport('%s Has %s correctamente a las %s' % (remoji, rtext, time)) + conditional_response = { + "text": "desfichado", + "emoji": "🏡🏃‍♂️🏢🕐" + } + self.sendReport('%s Has %s correctamente a las %s' % (conditional_response['emoji'], conditional_response['text'], time)) else: self.sendReport("🟥🕐 No se ha podido fichar, la web no ha devuelto 200 OK")