Skip to content

Convert zip to list for templates #7359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions readthedocs/projects/views/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,10 +1066,10 @@ def get_context_data(self, **kwargs):

# Count of views for top pages over the month
top_pages = PageView.top_viewed_pages(project)
top_viewed_pages = zip(
top_viewed_pages = list(zip(
top_pages['pages'],
top_pages['view_counts']
)
))

# Aggregate pageviews grouped by day
page_data = PageView.page_views_by_date(
Expand Down