Ejemplo n.º 1
0
 def save_action(self, did, ip, banned, platform):
     try:
         p = self.request.get('p')
         anon = False if p else True
         d = dict(action='serverinfo', banned=banned)
         playerdetail.save(p, anon, did, ip, d, platform)
     except:
         pass
Ejemplo n.º 2
0
 def save_action(self, did, ip, banned, platform):
     try:
         p = self.request.get('p')
         anon = False if p else True
         d = dict(action='serverinfo', banned=banned)
         playerdetail.save(p, anon, did, ip, d, platform)
     except:
         pass
Ejemplo n.º 3
0
 def save_action(self, did, ip, banned):
     try:
         p = self.request.get("p")
         anon = False if p else True
         d = dict(action="serverinfo", banned=banned)
         playerdetail.save(p, anon, did, ip, d)
     except:
         pass
Ejemplo n.º 4
0
 def save_action(self, username, did):
     try:
         player_name = username
         anonymous = False
         ip = self.request.remote_addr
         action = dict(action='auth')
         playerdetail.save(player_name, anonymous, did, ip, action)
     except:
         pass
Ejemplo n.º 5
0
 def save_action(self):
     try:
         p = self.request.get('p')
         anon = False if p else True
         did = self.request.get('d')
         ip = self.request.remote_addr
         playerdetail.save(p, anon, did, ip, dict(action='leaderboard'))
     except:
         pass
Ejemplo n.º 6
0
 def save_action(self, username, did):
     try:
         player_name = username
         anonymous = False
         ip = self.request.remote_addr
         action = dict(action='auth')
         playerdetail.save(player_name, anonymous, did, ip, action)
     except:
         pass
Ejemplo n.º 7
0
 def save_actions(self, dids):
     # For every legit player, add a player action
     for player_stat in self.player_stats:
         if player_stat.winstats.ff & kfwsComputer:
             continue
         player_name = player_stat.name
         anonymous = (player_stat.winstats.ff & kfwsAnonymous) != 0
         did = dids[player_name] if player_name in dids else ''
         ip = player_stat.ip if 'ip' in player_stat.__dict__ else ''
         action = dict(action='game', key=self.get_game_key_name())
         utc = self.end_utc
         playerdetail.save(player_name, anonymous, did, ip, action, utc)
Ejemplo n.º 8
0
 def save_actions(self, dids):
     # For every legit player, add a player action
     for player_stat in self.player_stats:
         if player_stat.winstats.ff & kfwsComputer:
             continue
         player_name = player_stat.name
         anonymous = (player_stat.winstats.ff & kfwsAnonymous) != 0
         did = dids[player_name] if player_name in dids else ''
         ip = player_stat.ip if 'ip' in player_stat.__dict__ else ''
         action = dict(action='game', key=self.get_game_key_name())
         utc = self.end_utc
         playerdetail.save(player_name, anonymous, did, ip, action, utc)