mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 04:37:04 +03:00
Merge pull request #29 from olegvodyanov/add_separation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
fix
This commit is contained in:
commit
6ea856eab7
@ -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