analytics/views: Remove redundant check of `if end is None`.

This commit is contained in:
Wyatt Hoodes 2019-07-30 08:37:28 -10:00 committed by Tim Abbott
parent fa227d79af
commit 97c10b35c2
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ def get_chart_data(request: HttpRequest, user_profile: UserProfile, chart_name:
if end is None:
end = max(last_successful_fill(stat.property) or
datetime.min.replace(tzinfo=timezone_utc) for stat in stats)
if end is None or start > end:
if start > end:
logging.warning("User from realm %s attempted to access /stats, but the computed "
"start time: %s (creation of realm or installation) is later than the computed "
"end time: %s (last successful analytics update). Is the "