Compare commits

..

No commits in common. "9eed5e3d114d8cbb43dd2dd94335e02e64d08ff4" and "4b8f92fe95daeebd843ebe0ef72b06d631cda2b9" have entirely different histories.

3 changed files with 10 additions and 92 deletions

15
app.py
View File

@ -1,5 +1,5 @@
from flask import Flask, render_template, g, abort, request, jsonify, send_from_directory
import sqlite3, os, csv
import sqlite3, os
from src.python.breed import get_breed_id, get_breeding_pairs, get_used_in_breeds
@ -222,18 +222,5 @@ def get_breeding_combinations():
used_in_breeds=used_in_breeds,
)
def read_csv(file_path):
data = []
with open(file_path, 'r', newline='', encoding='utf-8') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
data.append(row)
return data
@app.route('/skills')
def skills():
csv_data = read_csv('src/skills_data.csv')
return render_template('skills.html', csv_data=csv_data)
if __name__ == "__main__":
app.run(debug=True)

View File

@ -552,10 +552,6 @@ video {
margin: 0.5rem;
}
.m-4 {
margin: 1rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
@ -577,10 +573,6 @@ video {
margin-top: 1rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.block {
display: block;
}
@ -589,10 +581,6 @@ video {
display: flex;
}
.table {
display: table;
}
.grid {
display: grid;
}
@ -602,14 +590,6 @@ video {
width: fit-content;
}
.w-full {
width: 100%;
}
.border-collapse {
border-collapse: collapse;
}
.cursor-pointer {
cursor: pointer;
}
@ -622,6 +602,10 @@ video {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-center {
align-content: center;
}
.items-center {
align-items: center;
}
@ -638,10 +622,6 @@ video {
border-radius: 0.375rem;
}
.border {
border-width: 1px;
}
.border-2 {
border-width: 2px;
}
@ -656,6 +636,11 @@ video {
background-color: rgb(15 23 42 / var(--tw-bg-opacity));
}
.bg-gray-800 {
--tw-bg-opacity: 1;
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}
.bg-neutral-800 {
--tw-bg-opacity: 1;
background-color: rgb(38 38 38 / var(--tw-bg-opacity));
@ -665,20 +650,6 @@ video {
padding: 0.5rem;
}
.p-4 {
padding: 1rem;
}
.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.pl-2 {
padding-left: 0.5rem;
}
@ -710,11 +681,6 @@ video {
line-height: 1.75rem;
}
.text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}
.font-black {
font-weight: 900;
}

View File

@ -1,35 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/img/favicon.ico" />
<link rel="stylesheet" href="../static/style/output.css" />
<title>Skills Data</title>
</head>
<body
class="flex items-center justify-center p-4 m-4 font-mono text-white bg-neutral-800"
>
<div class="text-center">
<h1 class="text-3xl font-bold mb-4">Skills Data</h1>
<table class="border-collapse border w-full">
<thead>
<tr>
{% for key in csv_data[0].keys() %}
<th class="border py-2 px-4">{{ key }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in csv_data %}
<tr>
{% for value in row.values() %}
<td class="border py-2 px-4">{{ value }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>