Initial commit

This commit is contained in:
Евгений Титаренко 2023-11-30 21:01:57 +03:00
commit 8b18f2439c
13 changed files with 960 additions and 0 deletions

13
db/db_conf.py Normal file
View file

@ -0,0 +1,13 @@
import configparser
CONFIG_FILE = "configuration.ini"
config = configparser.ConfigParser()
config.read(CONFIG_FILE)
if config.has_section("DB"):
db_conf = config["DB"]
else:
db_conf = {}
MAX_LOGIN_LENGTH = db_conf.get("maxLoginLength", 20)