e502f69934
update
2026-03-31 23:21:27 -06:00
9c76c98da8
fix
2026-03-31 02:21:44 -06:00
eb8fa92029
fix
2026-03-30 19:13:56 -06:00
a049ca7f2b
add log
2026-03-30 18:51:04 -06:00
0219a05142
refactor score
2026-03-30 18:51:04 -06:00
4cb37b0c95
refactor score
2026-03-30 05:56:47 -06:00
d05c05757d
add bloom
2026-03-30 05:33:14 -06:00
8456b76586
remove rank
2026-03-29 10:07:22 -06:00
7c4f729cb4
fix
2026-03-18 19:57:04 +08:00
0dc8b92dcb
add stats
2026-03-18 19:46:27 +08:00
e692ddd1f3
update
2026-03-18 18:40:10 +08:00
7e5e02c7e6
update
2026-03-18 14:50:24 +08:00
3a58925764
add leaderboard
2026-03-09 20:00:06 +08:00
c01273bccd
fix
2026-03-09 19:07:39 +08:00
417e7c34bc
Fix submission list API performance: N+1 queries, missing indexes, and in-memory pagination
...
- Add select_related("user") in update_score() to eliminate N+1 on rating.user.role
- Return QuerySet directly from list_submissions so @paginate works at DB level
- Defer html/css/js fields in list queries to reduce data transfer
- Add db_index on flag field for filtered queries
- Add select_related("task", "user") to get_submission endpoint
- Replace manual list() serialization with resolve_* methods on SubmissionOut
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 18:26:32 +08:00
d4727b1538
Add flag API endpoint and filter logic
...
Adds PUT /{submission_id}/flag endpoint (admin/super only) and
flag filter support in list_submissions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:17 +08:00
c7834530fe
Add flag to API schemas and submission filter
...
Adds flag field to SubmissionOut, SubmissionFilter, and new FlagIn schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:10 +08:00
aa344b92e5
Add flag field to Submission model with FlagChoices enum
...
Adds red/blue/green/yellow flag options for marking submissions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:05 +08:00
6998d694bb
add chat
2026-03-04 20:05:33 +08:00
8e91884d75
fix list submissions
2025-12-22 18:29:18 +08:00
313e326316
fix
2025-06-15 23:07:48 +08:00
30becb56bc
update
2025-06-15 23:02:47 +08:00
8cdf1f8d2c
添加提交的序号
2025-04-28 09:34:34 +08:00
cdf83f4d07
update
2025-03-20 18:58:38 +08:00
c81b5b1a55
添加 rating
2025-03-19 09:15:14 +08:00
d857da26f6
fix
2025-03-18 19:36:26 +08:00
06ba298b3c
fix
2025-03-18 19:33:42 +08:00
8cdc23d499
fix
2025-03-18 19:29:59 +08:00
55ef262ae8
添加提交
2025-03-18 19:16:32 +08:00
0d07daa655
add verbose name
2025-03-10 20:23:36 +08:00
3b52eb1813
fix
2025-03-07 09:37:28 +08:00
c95dafe14d
重构数据
2025-03-07 00:06:56 +08:00