Example #1
0
def _players():
    """A wrapper for minqlx.Players to make the output more usable."""
    ret = []
    for player in minqlx.players_info():
        d = {}
        for key in player:
            if key == "configstring":
                d.update(minqlx.parse_variables(player["configstring"]))
            elif key == "userinfo":
                d.update(minqlx.parse_variables(player["userinfo"]))
            else:
                d[key] = player[key]
        ret.append(d)
    return ret
Example #2
0
def _players():
    """A wrapper for minqlx.Players to make the output more usable."""
    ret = []
    for player in minqlx.players_info():
        d = {}
        for key in player:
            if key == "configstring":
                d.update(minqlx.parse_variables(player["configstring"]))
            elif key == "userinfo":
                d.update(minqlx.parse_variables(player["userinfo"]))
            else:
                d[key] = player[key]
        ret.append(d)
    return ret
Example #3
0
 def all_players(cls):
     return [
         cls(i, info=info) for i, info in enumerate(minqlx.players_info())
         if info
     ]
Example #4
0
 def all_players(cls):
     return [cls(i, info=info) for i, info in enumerate(minqlx.players_info()) if info]