Commit 25f12db
feat(timetable): catalog links, scoped overrides, tags, exam schedule and share assets
Iteration 3 of the timetable (README §8):
- Entries link to the course catalog on import (blank fields filled, the
student's values win) and carry role (已选/旁听), category (course/exam/
other) and a free tag; POST catalog/<id>/add/ adds a catalog course as 旁听.
- Per-week overrides (TimetableEntryOverride) back PATCH entries/<id>/ with
scope all/single/following and a canceled flag; imported entries keep the
student's edits across re-imports; GET entries/<id>/ and DELETE overrides.
- Settings expose the registered sources, the student's tags and hidden_tags;
a new exam source matches the term's CourseExam rows (import_exam_schedule)
to the student's courses; terms gain exam_week_start / teaching_weeks and
the seed calendars cover the exam weeks.
- GET share/assets/ serves the mini-program code (wxacode, cached) and the
official-account QR code for the poster.
- Spectacular enum names pinned for the new choice sets.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012t4BD5H1P5nn2zF7oU6q9e1 parent ba4ff59 commit 25f12db
42 files changed
Lines changed: 4371 additions & 168 deletions
File tree
- api
- activity
- timetable
- boot
- extern
- timetable
- data
- management/commands
- migrations
- sources
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
50 | 66 | | |
51 | 67 | | |
52 | 68 | | |
53 | 69 | | |
54 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
55 | 84 | | |
56 | 85 | | |
57 | 86 | | |
| |||
0 commit comments