removing .ini config

email
androiddrew 7 years ago
parent ed324ec4e3
commit 02330ae348

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

@ -1,5 +1,3 @@
from configparser import ConfigParser
import bcrypt
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, ForeignKey, DateTime, Boolean, Numeric
@ -8,11 +6,7 @@ from sqlalchemy.sql import expression
from sqlalchemy.ext.compiler import compiles
from sqlalchemy.types import DateTime as DateTimeType
cfg = ConfigParser()
cfg.read('config.ini')
BCRYPT_LOG_ROUNDS = int(cfg.get('user', 'BCRYPT_LOG_ROUNDS'))
BCRYPT_LOG_ROUNDS = 13
# can be moved to models util?
class utcnow(expression.FunctionElement):

Loading…
Cancel
Save