Skip to content

Commit

Permalink
code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Aug 27, 2024
1 parent 407f049 commit d756b22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/main/views/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def set_timezone():
# Cookie is set in dashboard.html on page load
try:
timezone = request.cookies.get("timezone", "US/Eastern")
current_app.logger.debug(f"User's timezone is {timezone}")
current_app.logger.debug(hilite(f"User's timezone is {timezone}"))
serialized_user = current_user.serialize()
if serialized_user["preferred_timezone"] is not timezone:
current_user.update(preferred_timezone=timezone)
Expand Down
6 changes: 2 additions & 4 deletions app/templates/views/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

{% block service_page_title %}
Dashboard

<script type="text/javascript" src="{{ asset_url('js/setTimezone.js') }}"></script>


{% endblock %}

{% block maincolumn_content %}
<script type="text/javascript" src="{{ asset_url('js/setTimezone.js') }}"></script>


<div class="dashboard margin-bottom-2">

Expand Down

0 comments on commit d756b22

Please sign in to comment.