From 02330ae34881365f3ab86091f286863c23603789 Mon Sep 17 00:00:00 2001 From: androiddrew Date: Mon, 13 Nov 2017 15:26:04 -0500 Subject: [PATCH] removing .ini config --- config.ini | 4 ---- cookie_api/models.py | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 config.ini diff --git a/config.ini b/config.ini deleted file mode 100644 index e345996..0000000 --- a/config.ini +++ /dev/null @@ -1,4 +0,0 @@ -# config.ini - -[user] -BCRYPT_LOG_ROUNDS : 13 \ No newline at end of file diff --git a/cookie_api/models.py b/cookie_api/models.py index c04cd8c..4a2df8c 100644 --- a/cookie_api/models.py +++ b/cookie_api/models.py @@ -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):