diff options
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -180,10 +180,10 @@ def lobby(): ) -@app.route("/premadefinder", methods=["GET", "POST"]) -def premades(): +@app.route("/prematefinder", methods=["GET", "POST"]) +def premates(): steamids = [] - premadedata = dict() + prematedata = dict() connections = set() if request.method == "POST": @@ -197,21 +197,21 @@ def premades(): ) # Ask steam about profiles - premadedata = steam.getDataForPremadefinder(steamids) + prematedata = steam.getDataForPrematefinder(steamids) # Add connection between friends. # Friends are always bidirectional, so we use set and min/max to avoid duplicates for steamid in steamids: - for friend in premadedata[steamid]["_friends"]: + for friend in prematedata[steamid]["_friends"]: if friend in steamids: friend_a = min(steamid, friend) friend_b = max(steamid, friend) connections.add((friend_a, friend_b)) return render_template( - "premades_html.jinja", + "premates_html.jinja", steamids=steamids, - profiles=premadedata, + profiles=prematedata, current_time=time.time(), connections=connections, ) |