Commit graph

8 commits

Author SHA1 Message Date
5262975275
refactor: add config.py
this change adds self validation in __init__, allows to make config values with different types (not just string) and stores config values in classes for easier accessibility

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-26 20:29:44 +03:00
4fbdb198ae
refactor: move imports in main.py
this change allows to avoid multiple and very specific imports in other python files

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-26 14:28:15 +03:00
d363fa9afd
fix: use App.HostName (if set) in /about
oh yeah and we're also moving that strange ternary to main.py

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-26 14:18:41 +03:00
496ea38b5c
change: update config.ini
use definitions from danbooru dotenv, add comments

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-26 14:03:09 +03:00
25768e4c90
refactor: add html_parser.py
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-10 15:16:00 +03:00
3242418ae6
fix: about used General because i forgor
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-02 14:28:12 +03:00
1178c80831
feat: add token in config.ini
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-02 14:09:49 +03:00
6ec797a387
Initial commit
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2025-03-02 01:20:11 +03:00