fix emoji order

This commit is contained in:
Omar Sánchez
2021-10-20 13:25:01 +02:00
parent ab6855259e
commit 321f88f16a

View File

@@ -161,12 +161,16 @@ class AutoFicher():
else: else:
time = datetime.now().astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M") time = datetime.now().astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M")
rtext = 'fichado' conditional_response = {
remoji = "🏡🏃‍♂️🏢🕐" "text": "fichado",
"emoji": "🕐🏢🏃‍♂️🏡"
}
if typ: if typ:
rtext = 'desfichado' conditional_response = {
remoji = "🕐🏢🏃‍♂️🏡" "text": "desfichado",
self.sendReport('%s Has %s correctamente a las %s' % (remoji, rtext, time)) "emoji": "🏡🏃‍♂️🏢🕐"
}
self.sendReport('%s Has %s correctamente a las %s' % (conditional_response['emoji'], conditional_response['text'], time))
else: else:
self.sendReport("🟥🕐 No se ha podido fichar, la web no ha devuelto 200 OK") self.sendReport("🟥🕐 No se ha podido fichar, la web no ha devuelto 200 OK")