add emojis

This commit is contained in:
Omar Sánchez
2021-10-20 12:53:34 +02:00
parent 9859ccde8a
commit ab6855259e

View File

@@ -157,16 +157,18 @@ class AutoFicher():
if rj['Repeated']: if rj['Repeated']:
time = datetime.strptime(rj['RepeatedTime'], "%Y-%m-%dT%H:%M:%SZ").replace( time = datetime.strptime(rj['RepeatedTime'], "%Y-%m-%dT%H:%M:%SZ").replace(
tzinfo=pytz.utc).astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M") tzinfo=pytz.utc).astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M")
self.sendReport("Se ha realizado un marcaje antes a las %s" % time) self.sendReport("🕐 Se ha realizado un marcaje antes a las %s" % time)
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' rtext = 'fichado'
remoji = "🏡🏃‍♂️🏢🕐"
if typ: if typ:
rtext = 'desfichado' rtext = 'desfichado'
self.sendReport('Has %s correctamente a las %s' % (rtext, time)) remoji = "🕐🏢🏃‍♂️🏡"
self.sendReport('%s Has %s correctamente a las %s' % (remoji, rtext, 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")
if __name__ == '__main__': if __name__ == '__main__':