Skip to content

fix: --set-comment stored a tuple repr - #101

Merged
tobixen merged 1 commit into
masterfrom
fix/set-tuple-repr
Nov 30, 2026
Merged

tobixen merged 1 commit into
masterfrom
fix/set-tuple-repr

Conversation

@tobixen

@tobixen tobixen commented Nov 30, 2026

Copy link
Copy Markdown
Member

Closes #66

Commit message:

fix: --set-comment stored a tuple repr

The repeatable --set-comment and --set-contact options hand over a
tuple, which was stored as its repr, COMMENT:('hello'\,).  Each value
now gives one property.  An empty --set-<attr> value removes the
property on edit (it stored an empty value, or crashed for dates,
durations, priority and rrule), and adds nothing on add.  The
appending options (--set-category, --set-parent, --set-child) do
nothing with an empty value, and clearing DTSTAMP, or DTSTART on an
event or next to a DURATION, is an error.

https://github.com/pycalendar/plann/issues/66

Prompt: [pick from the task list: "Fix edit --set-<attr> storing a
  tuple repr, allow clearing a property"]

Assisted-By: Claude Opus 5.5

🤖 Generated with Claude Code

The repeatable --set-comment and --set-contact options hand over a
tuple, which was stored as its repr, COMMENT:('hello'\,).  Each value
now gives one property.  An empty --set-<attr> value removes the
property on edit (it stored an empty value, or crashed for dates,
durations, priority and rrule), and adds nothing on add.  The
appending options (--set-category, --set-parent, --set-child) do
nothing with an empty value, and clearing DTSTAMP, or DTSTART on an
event or next to a DURATION, is an error.

#66

Prompt: [pick from the task list: "Fix edit --set-<attr> storing a
  tuple repr, allow clearing a property"]

Assisted-By: Claude Opus 5.5
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen merged commit 43181c2 into master Nov 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

edit --set-comment stores a Python tuple repr, and an empty value cannot clear it

1 participant