Skip to content

Commit

Permalink
Merge pull request #226 from ralt/patch-1
Browse files Browse the repository at this point in the history
Lower the variable names when used
  • Loading branch information
akalipetis authored Jul 9, 2024
2 parents 9a48753 + 1b185ec commit 1aa87e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformifier/templates/django/settings_psh.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def decode(variable):
# Database service configuration, post-build only.
if os.getenv("{{ .Assets.EnvPrefix }}_RELATIONSHIPS") and {{ .Assets.EnvPrefix }}_DB_RELATIONSHIP:
{{ lower .Assets.EnvPrefix }}_relationships = decode(os.getenv("{{ .Assets.EnvPrefix }}_RELATIONSHIPS"))
if {{ .Assets.EnvPrefix }}_DB_RELATIONSHIP in {{ .Assets.EnvPrefix }}_relationships:
if {{ .Assets.EnvPrefix }}_DB_RELATIONSHIP in {{ lower .Assets.EnvPrefix }}_relationships:
db_settings = {{ lower .Assets.EnvPrefix }}_relationships[{{ .Assets.EnvPrefix }}_DB_RELATIONSHIP][0]
engine = None
if (
Expand Down

0 comments on commit 1aa87e2

Please sign in to comment.