Esempio n. 1
0
def whereis(show_name, *players):
  where = [ query.whereis_player(p) for p in players ]
  where = [ w for w in where if w ]
  including = [ ]
  if show_name:
    including.append( (0, ('name', 'Player') ) )

  if not where:
    return ''
  return games_table(where, columns=WHERE_COLUMNS, including=including,
                     count=False)
Esempio n. 2
0
def whereis(show_name, *players):
    where = [query.whereis_player(p) for p in players]
    where = [w for w in where if w]
    including = []
    if show_name:
        including.append((0, ('name', 'Player')))

    if not where:
        return ''
    return games_table(where,
                       columns=WHERE_COLUMNS,
                       including=including,
                       count=False)
Esempio n. 3
0
def whereis(c, *players):
  where_data = []
  for p in players:
    for src in ['cao','cdo','cln','csz','rhf']:
      where = query.whereis_player(c, p, src)
      if not where:
        continue
      mile_string = make_milestone_string(where, src)
      if not mile_string:
        continue
      where_data.append([where[0], mile_string])
  where_data.sort(key=lambda e: e[0], reverse=True)
  where_string = ""
  for w in where_data:
    where_string += w[1]
  return where_string
Esempio n. 4
0
def whereis(c, *players):
  where_data = []
  for p in players:
    for src in ['cao','cbr','cdo', 'cko', 'cpo','csz','cue','cwz','cxc','lld']:
      where = query.whereis_player(c, p, src)
      if not where:
        continue
      mile_string = make_milestone_string(where, src)
      if not mile_string:
        continue
      where_data.append([where[0], mile_string])
  where_data.sort(key=lambda e: e[0], reverse=True)
  where_string = ""
  for w in where_data:
    where_string += w[1]
  return where_string