feat: add view export functionality and refactor contributions query to use named view

Introduce a new `get_views()` function in db.py that queries the sqlite_schema for user-defined views, and add a loop in dataset.py to export each view's query results as a JSON file. Also create a persistent `contributions_extended_ranked` view to replace the inline subquery in `get_contributions()`, and refactor `get_users()` to use a direct DISTINCT query instead of deduplicating in Python.
This commit is contained in:
2024-11-24 06:38:17 +00:00
parent e5e5dd3aca
commit 7ec7ae8646
12 changed files with 24 additions and 112 deletions
Binary file not shown.
BIN
View File
Binary file not shown.