fix discover page
This commit is contained in:
parent
48427ac609
commit
c08928744e
1 changed files with 2 additions and 1 deletions
|
@ -32,9 +32,10 @@ class Command(BaseCommand):
|
|||
gallery_list = []
|
||||
for category in gallery_categories:
|
||||
item_ids = [
|
||||
m.item_id
|
||||
m["item_id"]
|
||||
for m in ShelfMember.objects.filter(query_item_category(category))
|
||||
.filter(created_time__gt=timezone.now() - timedelta(days=42))
|
||||
.values("item_id")
|
||||
.annotate(num=Count("item_id"))
|
||||
.order_by("-num")[:100]
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue