Upload files to "/"

main
Vladimirs Moriļovs 2024-05-21 17:55:24 +00:00
parent 2920406ed5
commit aa1eb54fb1
5 changed files with 57 additions and 0 deletions

4
input.csv 100644
View File

@ -0,0 +1,4 @@
Vova,17,Marupe
Masik,19,London
Michael,42,OTSO
Juuliijaa,17,Jugla
1 Vova 17 Marupe
2 Masik 19 London
3 Michael 42 OTSO
4 Juuliijaa 17 Jugla

5
output.csv 100644
View File

@ -0,0 +1,5 @@
Musik,musik@gmail.com,12345678
Vovasimo,kizivovan@gmail.com,12345678
Micha,micha@gmail.com,micha123KAJACHEV-NET123,kizivov123an@gmail.com,1231231231231231
KAJACHEV-NET123,kizivov123an@gmail.com,1231231231231231
,,
1 Musik,musik@gmail.com,12345678
2 Vovasimo,kizivovan@gmail.com,12345678
3 Micha,micha@gmail.com,micha123KAJACHEV-NET123,kizivov123an@gmail.com,1231231231231231
4 KAJACHEV-NET123,kizivov123an@gmail.com,1231231231231231
5 ,,

7
success.html 100644
View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block title %}Succes{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<h1>Success</h1>
<h1>Registration was successful!</h1>
{% endblock %}

27
users.html 100644
View File

@ -0,0 +1,27 @@
{% extends "base.html" %}
{% block title %}Users{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<h2 class="header">Users</h2>
<table class="table table-striped table-dark">
<thead>
<tr>
<td>#</td>
<td>Name</td>
<td>Email</td>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td scope="row">{{ loop.index }}</td>
{% for element in user %}
{% if loop.index < 3 %}
<td>{{ element }}</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}

14
weather.html 100644
View File

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}Weather{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<div class="container">
<h2 class="header">Current Weather</h2>
<div class="weather-container">
<p>Location: {{ weather.location.name }}</p>
<p>Temperature: {{ weather.current.temp_c }}°C</p>
<p>Condition: {{ weather.current.condition.text }}</p>
</div>
</div>
{% endblock %}