mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 04:37:04 +03:00
This commit is contained in:
parent
0c5dffc527
commit
08bdc0d70b
@ -27,7 +27,7 @@ def links_list(request):
|
||||
offset = (page - 1) * per_page
|
||||
limit = offset + per_page
|
||||
|
||||
all_links = Link.objects.get(watched__exact=watched).order_by('-id') # latest first
|
||||
all_links = Link.objects.filter(watched__exact=watched).order_by('-id') # latest first
|
||||
total = all_links.count()
|
||||
results = list(all_links[offset:limit].values('id', 'url', 'watched'))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user