Ejemplo n.º 1
0
 def call(self, chat, author, event_id):
     player = db.find_player_by_telegram_id(author)
     if player is None:
         telegram.send(chat, "Introduce yourself by providing your psn id: /r register <psn-id>")
         return
     db.delete_event(player, event_id)
     telegram.send(chat, "Deleted")
Ejemplo n.º 2
0
 def call(self, chat, author, event_id):
     player = db.find_player_by_telegram_id(author)
     if player is None:
         telegram.send(
             chat,
             "Introduce yourself by providing your psn id: /r register <psn-id>"
         )
         return
     db.delete_event(player, event_id)
     telegram.send(chat, "Deleted")
Ejemplo n.º 3
0
 def delete(self, event_id):
     player = db.find_player(users.get_current_user().user_id())
     db.delete_event(player, event_id)
     events_for(self, player)
Ejemplo n.º 4
0
 def delete(self, event_id):
     player = db.find_player(users.get_current_user().user_id())
     db.delete_event(player, event_id)
     events_for(self, player)