You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get a single tankoubon API endpoint return wrong total value #1155
LRR Version and OS
LANraragi 0.9.3 - Law (Earthlings on Fire)
Debian GNU/Linux bookworm 12.8 x86_64
Docker version 27.4.1, build b9d17ea
Bug Details
Get a single tankoubon API endpoint (GEThttp://lrr.tvc-16.science/api/tankoubons/:id) returns wrong total value. It always returns 2 more for total. For example a tankoubon without any archive:
Sorry for the late answer. Depending on this answer, the filtered does not work properly either, because it reports the number of archives on the given page, and total reports the total number of archives associated with the tankoubon. Or the filtered and total have different meanings here? It would be nice, if these meanings would be consistent across the API calls, or documented.
Activity
EfronC commentedon Jan 6, 2025
There is an error in the count, yes, apparently the way I count the number of files got affected by the extra fields, will rework that part.
Fixes Difegue#1155 and Difegue#1156 | Updates tests
junpet commentedon Jan 7, 2025
Sorry for the late answer. Depending on this answer, the
filtereddoes not work properly either, because it reports the number ofarchiveson the givenpage, andtotalreports the total number ofarchivesassociated with the tankoubon. Or thefilteredandtotalhave different meanings here? It would be nice, if these meanings would be consistent across the API calls, or documented.