Initial commit
This commit is contained in:
commit
8b18f2439c
13 changed files with 960 additions and 0 deletions
13
db/db_conf.py
Normal file
13
db/db_conf.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue