Skip to content

Commit

Permalink
s/prod/production for place summary gating logic (#3895)
Browse files Browse the repository at this point in the history
Update the flask environment to gate place summary text on to be
"production" instead of "prod"
  • Loading branch information
juliawu committed Jan 20, 2024
1 parent d388ae9 commit 4a2ed43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/place/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def place(place_dcid=None):
if os.environ.get('FLASK_ENV') in ['autopush', 'local']:
# In autopush or local, show all summaries
show_summary = True
if os.environ.get('FLASK_ENV') in ['staging', 'prod']:
if os.environ.get('FLASK_ENV') in ['staging', 'production']:
# In staging or prod, only show summaries for places in allow list
place_allow_list = current_app.config['PLACE_SUMMARY_ALLOW_LIST'] or []
show_summary = place_dcid in place_allow_list
Expand Down

0 comments on commit 4a2ed43

Please sign in to comment.