Vracen path za config na staro

This commit is contained in:
svitvojimilioni 2024-01-19 11:15:58 -05:00
parent 2721d2a524
commit 2d4b88bc7a

View File

@ -4,11 +4,11 @@ from taskmanager.functions import *
from taskmanager.models import *
import configparser
CONFIG_PATH = "/home/bob/kod-foss/taskmanager/taskmanager/config.ini"
CONFIG_PATH = "/var/taskmanager/taskmanager/config.ini"
config = configparser.ConfigParser()
config.read(CONFIG_PATH)
ADMINPASS = config.get('c', 'ADMINPASS')
ADMINPASS = config.get('credentials', 'ADMINPASS')
@app.route('/', methods=['GET'])
def index():