Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions conreq/utils/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
_SAFE_MODE = None
_DEBUG_MODE = None
_DB_ENGINE = None
ENV_PREFIX = os.environ.get("CONREQ_ENV_PREFIX", "").rstrip("_").upper()
if ENV_PREFIX:
if ENV_PREFIX := os.environ.get("CONREQ_ENV_PREFIX", "").rstrip("_").upper():
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 14-15 refactored with the following changes:

ENV_PREFIX = ENV_PREFIX + "_"


Expand Down