Compare commits

...

2 Commits

Author SHA1 Message Date
Олег Водянов
6ea856eab7
Merge pull request #29 from olegvodyanov/add_separation
All checks were successful
continuous-integration/drone/push Build is passing
fix
2025-04-23 15:37:18 +04:00
oleg.vodyanov91@gmail.com
08bdc0d70b fix
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-23 15:36:49 +04:00

View File

@ -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'))