Skip to content

Commit

Permalink
Truncated game name for matching names between /games and /con, fixed…
Browse files Browse the repository at this point in the history
… game_info Players section
  • Loading branch information
reillychase committed Oct 28, 2016
1 parent 353cb04 commit ee3d477
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ def __init__(self):
def update_game_info(self):

self.players_in_game = []
self.selected_game = re.findall('(.?.?.?.?.?.?.?)', self.selected_game)[0]
for player in self.player_status:
self.selected_game = self.list_games.currentItem().text()
print self.selected_game
player[4] = re.findall('(.?.?.?.?.?.?.?)', player[4])[0]
print player[4]
if player[4] == self.selected_game:

Expand All @@ -213,8 +213,8 @@ def update_game_info(self):
print game[0].replace(' [Private]', '')
game[0] = game[0].replace(' [Private]', '')
self.selected_game = self.list_games.currentItem().text().replace(' [Private]', '')

print self.selected_game
self.selected_game = re.findall('(.?.?.?.?.?.?.?)', self.selected_game)[0]
game[0] = re.findall('(.?.?.?.?.?.?.?)',game[0])[0]

if self.selected_game == game[0]:
game_text = []
Expand Down

0 comments on commit ee3d477

Please sign in to comment.