Skip to content

Commit

Permalink
Properly read FORCE_STEAM_LINK
Browse files Browse the repository at this point in the history
Non-empty strings are always true in Python so we need to
check for the explicit string "true"
  • Loading branch information
micheljung authored Sep 15, 2018
1 parent 2f10c94 commit 1bf077e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@

FAF_POLICY_SERVER_BASE_URL = os.getenv("FAF_POLICY_SERVER_BASE_URL", "http://faf-policy-server")
FORCE_STEAM_LINK_AFTER_DATE = os.getenv('FORCE_STEAM_LINK_AFTER_DATE',1536105599) # 5 september 2018 by default
FORCE_STEAM_LINK = os.getenv('FORCE_STEAM_LINK', False)
FORCE_STEAM_LINK = os.getenv('FORCE_STEAM_LINK', 'false').lower() == 'true'

0 comments on commit 1bf077e

Please sign in to comment.