Skip to content

Commit

Permalink
Fix last maps returned when search was empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Jul 12, 2023
1 parent ae49d0d commit b0c1a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_context_data(self, **kwargs):
qs = self.get_search_queryset()
qs_count = 0
results = []
if qs:
if qs is not None:
qs = qs.filter(share_status=Map.PUBLIC).order_by("-modified_at")
qs_count = qs.count()
results = self.paginate(qs)
Expand Down

0 comments on commit b0c1a6a

Please sign in to comment.