Add attend_start/attend_end fields for partial conference attendance.
Allows recording when you arrive late or leave early at a multi-day conference. Both fields accept a plain date or datetime with time. Trip pages display the attendance dates instead of the official conference dates when these fields are set. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2edfb40e66
commit
49e5a3000e
4 changed files with 17 additions and 3 deletions
11
AGENTS.md
11
AGENTS.md
|
|
@ -31,6 +31,17 @@ This is a personal agenda web application built with Flask that tracks various e
|
|||
- Only commit relevant project files
|
||||
- Personal data directory (`personal-data/`) is excluded from git
|
||||
|
||||
## Conference attendance fields
|
||||
Conferences in `conferences.yaml` support optional `attend_start` and `attend_end` fields for when you arrive late or leave early. Both accept a plain date or a datetime with time and timezone (YAML datetime syntax). When present, the trip page shows the attendance dates instead of the official conference dates. The official `start`/`end` fields are always kept for context.
|
||||
|
||||
```yaml
|
||||
- name: FOSDEM
|
||||
start: 2023-02-04
|
||||
end: 2023-02-05
|
||||
attend_end: 2023-02-04 # left after day 1
|
||||
attend_start: 2023-02-04 14:00:00+00:00 # or with time
|
||||
```
|
||||
|
||||
## Notes
|
||||
- Trip stats new-country badges come from `agenda.stats.calculate_yearly_stats` via `year_stats.new_countries` (first-visit year, excluding `PREVIOUSLY_VISITED`).
|
||||
- Trip stats are calculated in `agenda/stats.py`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue