Apply suggestions from code review

Updating variable name from et to preferred_tz
This commit is contained in:
Carlo Costino
2023-11-22 13:06:04 -05:00
committed by GitHub
parent 425f8eb742
commit 4571a8bd15
3 changed files with 7 additions and 7 deletions

View File

@@ -13,10 +13,10 @@ from app.utils.csv import get_user_preferred_timezone
@main.route("/performance")
def performance():
et = pytz.timezone(get_user_preferred_timezone())
preferred_tz = pytz.timezone(get_user_preferred_timezone())
stats = performance_dashboard_api_client.get_performance_dashboard_stats(
start_date=(datetime.now(et) - timedelta(days=7)).date(),
end_date=datetime.now(et).date(),
start_date=(datetime.now(preferred_tz) - timedelta(days=7)).date(),
end_date=datetime.now(preferred_tz).date(),
)
stats["organizations_using_notify"] = sorted(
[