From 1fb8cac71ffa51f324eb7e89411f94a0b04de37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kaczmarek?= <12432719+AN0DA@users.noreply.github.com> Date: Sun, 15 Jun 2025 22:01:27 +0200 Subject: [PATCH] Refactor --- logi.txt => logs/logi.txt | 0 db_utils.py => src/db_utils.py | 0 main.py => src/main.py | 4 ++-- {static => src/static}/humid.png | Bin {static => src/static}/rain.png | Bin {static => src/static}/style.css | 0 {static => src/static}/temp.png | Bin {templates => src/templates}/frontpage.html | 0 {templates => src/templates}/frontpage2.html | 0 {templates => src/templates}/frontpage_style.html | 0 {templates => src/templates}/home.html | 0 {templates => src/templates}/logowanie.html | 0 {templates => src/templates}/pogoda.html | 0 {templates => src/templates}/signup.html | 0 weather_api.py => src/weather_api.py | 0 15 files changed, 2 insertions(+), 2 deletions(-) rename logi.txt => logs/logi.txt (100%) rename db_utils.py => src/db_utils.py (100%) rename main.py => src/main.py (95%) rename {static => src/static}/humid.png (100%) rename {static => src/static}/rain.png (100%) rename {static => src/static}/style.css (100%) rename {static => src/static}/temp.png (100%) rename {templates => src/templates}/frontpage.html (100%) rename {templates => src/templates}/frontpage2.html (100%) rename {templates => src/templates}/frontpage_style.html (100%) rename {templates => src/templates}/home.html (100%) rename {templates => src/templates}/logowanie.html (100%) rename {templates => src/templates}/pogoda.html (100%) rename {templates => src/templates}/signup.html (100%) rename weather_api.py => src/weather_api.py (100%) diff --git a/logi.txt b/logs/logi.txt similarity index 100% rename from logi.txt rename to logs/logi.txt diff --git a/db_utils.py b/src/db_utils.py similarity index 100% rename from db_utils.py rename to src/db_utils.py diff --git a/main.py b/src/main.py similarity index 95% rename from main.py rename to src/main.py index adea36a..b16667b 100644 --- a/main.py +++ b/src/main.py @@ -6,8 +6,8 @@ import json import random import datetime -from db_utils import create_db_session, User -from weather_api import get_weather +from src.db_utils import create_db_session, User +from src.weather_api import get_weather # Inicjalizacja web app app = flask.Flask(__name__, diff --git a/static/humid.png b/src/static/humid.png similarity index 100% rename from static/humid.png rename to src/static/humid.png diff --git a/static/rain.png b/src/static/rain.png similarity index 100% rename from static/rain.png rename to src/static/rain.png diff --git a/static/style.css b/src/static/style.css similarity index 100% rename from static/style.css rename to src/static/style.css diff --git a/static/temp.png b/src/static/temp.png similarity index 100% rename from static/temp.png rename to src/static/temp.png diff --git a/templates/frontpage.html b/src/templates/frontpage.html similarity index 100% rename from templates/frontpage.html rename to src/templates/frontpage.html diff --git a/templates/frontpage2.html b/src/templates/frontpage2.html similarity index 100% rename from templates/frontpage2.html rename to src/templates/frontpage2.html diff --git a/templates/frontpage_style.html b/src/templates/frontpage_style.html similarity index 100% rename from templates/frontpage_style.html rename to src/templates/frontpage_style.html diff --git a/templates/home.html b/src/templates/home.html similarity index 100% rename from templates/home.html rename to src/templates/home.html diff --git a/templates/logowanie.html b/src/templates/logowanie.html similarity index 100% rename from templates/logowanie.html rename to src/templates/logowanie.html diff --git a/templates/pogoda.html b/src/templates/pogoda.html similarity index 100% rename from templates/pogoda.html rename to src/templates/pogoda.html diff --git a/templates/signup.html b/src/templates/signup.html similarity index 100% rename from templates/signup.html rename to src/templates/signup.html diff --git a/weather_api.py b/src/weather_api.py similarity index 100% rename from weather_api.py rename to src/weather_api.py