Skip to content
Snippets Groups Projects
Unverified Commit e236bed7 authored by Jago Gardiner's avatar Jago Gardiner
Browse files

Refactor and fix css


Change-Id: I5e3061d5bcb62874d8b87959059b87ce533e72cf
Signed-off-by: default avatarJago Gardiner <jagogardiner@gmail.com>
parent 08246dff
Branches
No related tags found
No related merge requests found
......@@ -14,9 +14,6 @@ def index():
return render_template("index.html")
# qfnwoinmqwon opfkekjvnmq\pbfn d[pm ]
@app.route("/about")
def about():
return render_template("about.html")
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="homepage.css">
<link href="../static/css/style.css" rel="stylesheet" />
</head>
<body>
......@@ -48,4 +49,5 @@
</div>
</body>
</html>
File moved
import csv
web_output = '' # Empty output string
web_output = "" # Empty output string
players = [] # List of all the players
# Could POTENTIALLY have a list for each of those below if we choose this route
with open ('as_given_to_us/playerData.csv', 'r') as csv_file:
with open("as_given_to_us/playerData.csv", "r") as csv_file:
r_csv = csv.reader(csv_file)
next(r_csv) # skips the headers
# Allows for direct access to each column
for dict in r_csv:
name = dict[0]
......@@ -31,21 +30,14 @@ with open ('as_given_to_us/playerData.csv', 'r') as csv_file:
game4 = dict[15]
game5 = dict[16]
players.append(name) # Adds to the the list
web_output += f'<p>{len(players)}, {name} <p>\n'
web_output += f"<p>{len(players)}, {name} <p>\n"
print(web_output)
# for each in players:
# print (each)
# https://www.youtube.com/watch?v=bkpLhQd6YQM
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment