Skip to content

feat: add quantity field to goal and session objects#10

Merged
Calonca merged 1 commit intomainfrom
9-add-a-quantifiable-field-into-goal-object
Feb 1, 2026
Merged

feat: add quantity field to goal and session objects#10
Calonca merged 1 commit intomainfrom
9-add-a-quantifiable-field-into-goal-object

Conversation

@Calonca
Copy link
Owner

@Calonca Calonca commented Feb 1, 2026

Now it is possible to associate a quantity each session. For example the page of a book, the remaning pages or the flashcards studied in a session.

add_goal now has an optional quantity_name and add_session has the fields quantity as input

To use the feature create a goal with a quantity_name (pages remaning, flashcards done) and insert the quantity when adding new sessions

To create statistics like how many pages the user is reading every week the function list_sessions_between_dates can be used. The sessions also contain the quantity and to get a weekly count they can be filtered by goal id and the quantity can be summed.

@Calonca Calonca self-assigned this Feb 1, 2026
@Calonca Calonca linked an issue Feb 1, 2026 that may be closed by this pull request
@Calonca Calonca merged commit 752986d into main Feb 1, 2026
1 check passed
@Calonca Calonca deleted the 9-add-a-quantifiable-field-into-goal-object branch February 8, 2026 16:57
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.

Add a quantifiable field into goal object

1 participant