mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-17 16:11:14 +10:00
The fucking activity feed what the fuck!
This commit is contained in:
@@ -56,7 +56,7 @@ def community_list(request):
|
||||
obj = Community.objects
|
||||
# if there are no featured communities, sort by popularity instead.
|
||||
if not obj.filter(is_feature=True).exists():
|
||||
feature = sorted(obj.filter(), key=lambda x: x.popularity(), reverse=True)[0:4]
|
||||
feature = sorted(obj.filter().exclude(type=4), key=lambda x: x.popularity(), reverse=True)[0:4]
|
||||
else:
|
||||
feature = obj.filter(is_feature=True).order_by('-created')
|
||||
if request.user.is_authenticated:
|
||||
|
||||
Reference in New Issue
Block a user