Skip to content

Commit

Permalink
print total rows
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardchalstrey1 committed Jul 19, 2024
1 parent c4bab87 commit 1f3a08a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seshat/apps/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3828,6 +3828,7 @@ def get_polity_shape_content(displayed_year="all", seshat_id="all", tick_number=

if displayed_year != "all":
rows = VideoShapefile.objects.filter(polity_start_year__lte=displayed_year, polity_end_year__gte=displayed_year)
print("Total number of rows: ", len(rows))
elif seshat_id != "all":
rows = VideoShapefile.objects.filter(seshat_id=seshat_id)
else:
Expand Down

0 comments on commit 1f3a08a

Please sign in to comment.