summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2022-10-08 21:01:00 +0200
committerAndré Glüpker <git@wgmd.de>2022-10-08 21:01:00 +0200
commit0535319a72ca7c38c44f2268e61147ec7324d7dd (patch)
treedeff601e69a63e7af10970dc532414008f94b1b1
parent6a6a1fcca5058eedcd26c280bb003ca189e67815 (diff)
downloadsteam-0535319a72ca7c38c44f2268e61147ec7324d7dd.tar.gz
steam-0535319a72ca7c38c44f2268e61147ec7324d7dd.tar.bz2
steam-0535319a72ca7c38c44f2268e61147ec7324d7dd.zip
Rename old typo s/Premade/Premate
-rw-r--r--SteamAPI.py2
-rwxr-xr-xmain.py14
-rw-r--r--pyproject.toml2
-rw-r--r--static/style.css3
-rw-r--r--templates/lobby_html.jinja2
-rw-r--r--templates/premates_html.jinja (renamed from templates/premades_html.jinja)10
-rw-r--r--templates/server_html.jinja2
7 files changed, 17 insertions, 18 deletions
diff --git a/SteamAPI.py b/SteamAPI.py
index 95a7105..3ac4eeb 100644
--- a/SteamAPI.py
+++ b/SteamAPI.py
@@ -371,7 +371,7 @@ class SteamAPI:
return result
- def getDataForPremadefinder(self, steamids):
+ def getDataForPrematefinder(self, steamids):
futures = dict()
futures["profiles"] = executor.submit(self.getProfiles, steamids)
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,
)
diff --git a/pyproject.toml b/pyproject.toml
index ecb7ddb..3ac3b2f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[tool.poetry]
name = "lobbyfinder"
version = "0.1.0"
-description = "Page to join my friends lobbies and check for premades"
+description = "Page to join my friends lobbies and check for premates"
authors = ["André Glüpker <andre@wgmd.de>"]
[tool.poetry.dependencies]
diff --git a/static/style.css b/static/style.css
index 9544769..d76b111 100644
--- a/static/style.css
+++ b/static/style.css
@@ -106,7 +106,7 @@ div.form {
border: 1px dashed gray;
text-align: center;
}
-div#premades {
+div#premates {
border: 1px dashed rgb(150, 150, 0);
height: 500px;
}
@@ -271,4 +271,3 @@ span.snooze { color: rgb(135, 134, 135); }
span.lookingtotrade { color: rgb(255, 255, 0); }
span.lookingtoplay { color: rgb(0, 255, 0); }
span.offline,a.offline { color: rgb(137, 137, 137); }
-
diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja
index 0564e55..e6ed28f 100644
--- a/templates/lobby_html.jinja
+++ b/templates/lobby_html.jinja
@@ -12,7 +12,7 @@
<li class="menu"><a class="joinbutton" href="javascript:hideOffline();" id="offlinetoggle">Hide Offline</a></li>
<li class="menu"><a href="javascript:location.reload();" class="joinbutton">Refresh</a></li>
<li class="menu app"><a class="joinbutton" href="server">Serverinfo</a></li>
- <li class="menu app"><a class="joinbutton" href="premadefinder">Premadefinder</a></li>
+ <li class="menu app"><a class="joinbutton" href="prematefinder">Prematefinder</a></li>
</ul>
{% with messages = get_flashed_messages() %}
diff --git a/templates/premades_html.jinja b/templates/premates_html.jinja
index 539815a..b891bac 100644
--- a/templates/premades_html.jinja
+++ b/templates/premates_html.jinja
@@ -1,6 +1,6 @@
<html>
<head>
- <title>Steam Premadefinder</title>
+ <title>Steam Prematefinder</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="static/style.css" />
<link rel="icon" type="image/png" href="static/favicon.png" />
@@ -15,9 +15,9 @@
<div class="form">
Copy&amp;Paste den Inhalt von 'status' aus der Konsole.<br />
- <form action="premadefinder" method="post">
+ <form action="prematefinder" method="post">
<textarea name="statustext" cols="75" rows="10"></textarea><br />
- <input class="joinbutton" type="submit" value="Premades finden!" />
+ <input class="joinbutton" type="submit" value="Premates finden!" />
</form>
</div>
@@ -109,7 +109,7 @@
const renderer = Viva.Graph.View.renderer(graph,
{
- container: document.getElementById('premades'),
+ container: document.getElementById('premates'),
graphics: graphics,
layout: layout
}
@@ -119,7 +119,7 @@
}
</script>
- <div id="premades">
+ <div id="premates">
</div>
<div id="info">
diff --git a/templates/server_html.jinja b/templates/server_html.jinja
index 7d4e5c7..01cecb2 100644
--- a/templates/server_html.jinja
+++ b/templates/server_html.jinja
@@ -10,7 +10,7 @@
<ul id="menu">
<li class="menu"><a href="javascript:location.reload();" class="joinbutton">Refresh</a></li>
- <li class="menu app"><a class="joinbutton" href="premadefinder">Premadefinder</a></li>
+ <li class="menu app"><a class="joinbutton" href="prematefinder">Prematefinder</a></li>
<li class="menu app"><a class="joinbutton" href="lobby">Lobbylinkfinder</a></li>
</ul>