Skip to content

Commit

Permalink
Update modo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cderickson committed Apr 22, 2023
1 parent 8bdfcd1 commit 55ee83b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modo.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ def format_time(time):
# Player joined game header.
if count == 0:
count += 1
elif i.find("This is a @iMultiplayer Commander@i game.") != -1:
return 'Multiplayer Game Found.'
elif i.find(" has lost connection to the game") != -1:
lost_conn = True
elif i.find(" joined the game.") != -1:
Expand Down Expand Up @@ -1118,6 +1120,8 @@ def get_all_data(init,mtime):
# Output: List[Matches,Games,Plays]

gameactions = game_actions(init,mtime)
if isinstance(gameactions, str):
return gameactions
gamedata = game_data(gameactions)
if isinstance(gamedata, str):
return gamedata
Expand Down

0 comments on commit 55ee83b

Please sign in to comment.