summaryrefslogtreecommitdiffstatshomepage
path: root/tests/api (unfollow)
Commit message (Collapse)AuthorLines
3 daysAdd remaining association count sort optionsWolfgang Müller-1/+74
Now that we have all association counts mapped to their respective models we can easily allow sorting on them as well.
3 daysAdd filter for association countsWolfgang Müller-23/+76
This will replace the old 'empty' filter on comic associations and introduce a generic way of matching against association counts, along with support for different operators like 'greater than' or 'lower than'. Models that did not previously have a way of matching against their associates (like filtering for Artists that have N comics associated with them) now gain that functionality. For now the frontend keeps the simpler approach of allowing the user to only filter for empty associations, but we nonetheless need to adjust the 'empty' field to instead be linked to the new 'count' field.
2025-01-19backend: Add basic statistics query endpointWolfgang Müller-0/+106
For now we simply collect totals for all scrapers, models, and comic associations. These should be sufficient to compile some basic but still interesting statistics.
2024-11-15backend/lint: Do not shadow certain builtinsWolfgang Müller-8/+8
This commit enables ruff's flake8-builtin linter that emits warnings when builtin functions are shadowed. This is useful for builtins like "dict", "list", or "str" which we use often. Given the nature of this program we historically rely a lot on the usage of "id", "hash", and "filter" as variable names which also shadow Python builtins. For now let's ignore those, we have not used any of them in our code and the impact to the codebase would be considerable. This might be revisited in the future.
2024-11-14backend/lint: Format overlong lineWolfgang Müller-1/+3
2024-11-14backend/lint: Implement flake8-simplify suggestionsWolfgang Müller-1/+1
2024-11-14backend/lint: Fix import formattingWolfgang Müller-12/+27