mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 07:57:04 +03:00
Compare commits
2 Commits
8b0cddb9aa
...
6ea856eab7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ea856eab7 | ||
|
|
08bdc0d70b |
@ -27,7 +27,7 @@ def links_list(request):
|
|||||||
offset = (page - 1) * per_page
|
offset = (page - 1) * per_page
|
||||||
limit = offset + 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()
|
total = all_links.count()
|
||||||
results = list(all_links[offset:limit].values('id', 'url', 'watched'))
|
results = list(all_links[offset:limit].values('id', 'url', 'watched'))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user