summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/main.py b/main.py
index 5fd96a1..febee60 100755
--- a/main.py
+++ b/main.py
@@ -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,
)