Skip to content

Commit

Permalink
analytics: Cleanup confusingly type-variable all_records.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott committed Feb 4, 2016
1 parent 23705f4 commit 2436ad1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions analytics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,6 @@ def by_used_time(row):
@zulip_internal
def get_realm_activity(request, realm):
data = []
all_records = {}
all_user_records = {}

try:
Expand All @@ -829,8 +828,7 @@ def get_realm_activity(request, realm):
admin_emails = {admin.email for admin in admins}

for is_bot, page_title in [(False, 'Humans'), (True, 'Bots')]:
all_records = get_user_activity_records_for_realm(realm, is_bot)
all_records = list(all_records)
all_records = list(get_user_activity_records_for_realm(realm, is_bot))

user_records, content = realm_user_summary_table(all_records, admin_emails)
all_user_records.update(user_records)
Expand Down

0 comments on commit 2436ad1

Please sign in to comment.