condor-scripts
Mike Lang 3 years ago
parent 2aa2355c3a
commit c37d44f7c5

@ -0,0 +1 @@
{"Gekke__": 1172, "ND_tea": 1862, "itsmedash2": 1201, "FlygLuffet": 1314, "wooperpng": 1149, "Cyber_1": 1639, "shortcakesweets": 1459, "flamehaze0": 1293, "NBtelethia": 1376, "Lakehope2": 1289, "ribbongraph": 1467, "botwman": 693, "echaen": 1729, "pedrom664": 628, "TicTacFoe": 1672, "pojopoopoohead": 523, "smokepipe_": 1934, "ARTQ": 1435, "scc127": 1386, "tang_pls": 1945, "azumak1": 1115, "Squega": 1803, "ProbablyAthena": 258, "Mizmy": 1721, "Szprychaaa": 1740, "WinnerBit": 1246, "Kailaria": 1056, "Bgm_": 1870, "dlkurosh_": 1650, "RoyalGoof": 1872, "sanga_5_3": 1546, "Squidy1226": 1295, "ladyljl": 657, "Kupioala": 1479, "spootybiscuit": 1961, "missmists": 1554, "Gleeokenspiel": 1500, "ZELLLOOO": 1660, "Shandee_": 1057, "rivs218": 1381, "monster_racer": 2062, "Gfitty": 1295, "crate3333": 1808, "JPed": 1791, "notester_82": 1466, "Sivcria": 1632, "SailorMint": 1500, "Evtet": 1304, "Tufwfo": 1944, "yuka34": 1963, "arborelia": 1297, "cryss__": 1345, "Siveure": 1833, "eladdifficult": 1388, "ekimekim": 1488, "HummingBee__": 1523, "Paratroopa1": 1372, "biggiemac42": 1688, "SpeedFrog": 1531, "Ocre307": 1984, "Ancalagor": 1689, "Minhs2": 1330, "thebigranch_": 1529, "GamingProsAdventure": 1549}

@ -30,8 +30,9 @@ INFO_QUERY = """
def main(
output_dir,
host='condor.live', user='necrobot-read', password='necrobot-read', database='condor_x2',
base_dir='/srv/wubloader', start_range='0,10', non_interactive=False, restrict_league=None
host='condor.live', user='necrobot-read', password='necrobot-read', database='condor_xii',
base_dir='/srv/wubloader', start_range='0,10', non_interactive=False, restrict_league=None,
only_match_id=0,
):
logging.basicConfig(level=logging.INFO)
start_range = map(int, start_range.split(","))
@ -57,6 +58,9 @@ def main(
if restrict_league and league != restrict_league:
continue
if only_match_id and match_id != only_match_id:
continue
items = [(racer1, racer1), (racer2, racer2)]
if cawmentator:
items.append(("caw-{}".format(cawmentator), cawmentator))

@ -407,7 +407,7 @@ def review_race(match_id, race_number):
body.append("WARNING: Start video for {} was missing some data and may be inaccurate".format(racer_info["name"]))
if len(racer_info["starts"]) > 1:
body.append("WARNING: Detected multiple possible start times for {}: {}".format(
racer_info["name"], ", ".join(racer_info["starts"])
racer_info["name"], ", ".join(map(str, racer_info["starts"]))
))
else:
body.append("Using given start of {info[offset]} for {info[name]}".format(info=racer_info))

Loading…
Cancel
Save