Removed .ini configuration experiment

email
androiddrew 7 years ago
parent 4f3ee63faf
commit 06ee09940f

@ -1,4 +0,0 @@
# config.ini
[user]
BCRYPT_LOG_ROUNDS : 13

@ -8,11 +8,7 @@ from sqlalchemy.sql import expression
from sqlalchemy.ext.compiler import compiles from sqlalchemy.ext.compiler import compiles
from sqlalchemy.types import DateTime as DateTimeType from sqlalchemy.types import DateTime as DateTimeType
cfg = ConfigParser() BCRYPT_LOG_ROUNDS = 13
cfg.read('config.ini')
BCRYPT_LOG_ROUNDS = int(cfg.get('user', 'BCRYPT_LOG_ROUNDS'))
# can be moved to models util? # can be moved to models util?
class utcnow(expression.FunctionElement): class utcnow(expression.FunctionElement):

Loading…
Cancel
Save