GSTT-CSC / hazen-web-app

Interactive web-based implementation of hazen
Other
0 stars 0 forks source link

celery fails because config.py tries to run .replace method on empty string #5

Closed laurencejackson closed 2 years ago

laurencejackson commented 2 years ago

In config.py the string

SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL').replace("://", "ql://", 1) or 'postgresql://localhost:5432/hazen'

fails because the replace method cannot run on the Nonetype returned bytos.environ.get. Needs to be changed to something like:

SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'postgresql://localhost:5432/hazen'

laurencejackson commented 2 years ago

resolved by #4