Skip to content

Commit

Permalink
fix: the app now takes debug env var in count
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawpawzz committed Jun 13, 2024
1 parent a6482df commit 8c8d2ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uniride_sme/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Configure database connection"""
# !/usr/bin/python
from ast import literal_eval
import dataclasses
import os
from configparser import ConfigParser, NoSectionError
Expand Down Expand Up @@ -88,7 +89,7 @@ class Config:
ACCEPT_TIME_DIFFERENCE_MINUTES = int(os.getenv("ACCEPT_TIME_DIFFERENCE_MINUTES"))

# FLask configuration
FLASK_DEBUG = os.getenv("FLASK_DEBUG")
FLASK_DEBUG = literal_eval(os.getenv("FLASK_DEBUG"))
FLASK_HOST = os.getenv("FLASK_HOST")
FLASK_PORT = os.getenv("FLASK_PORT")

Expand Down

0 comments on commit 8c8d2ca

Please sign in to comment.