mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 10:17:05 +03:00
Compare commits
No commits in common. "6ea856eab74716e3a88faff38f94f473baf57f4e" and "8b0cddb9aaed23af30e6acb07fd049321b6d7dfa" have entirely different histories.
6ea856eab7
...
8b0cddb9aa
@ -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.filter(watched__exact=watched).order_by('-id') # latest first
|
all_links = Link.objects.get(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