Skip to content

[Feature]: Implement monthly_summary() in expense_tracker.py #831

@Aribafatma

Description

@Aribafatma

What problem does this solve?

Currently, the monthly_summary() function is just a placeholder (pass). Users cannot view their monthly expense breakdown, which limits the usefulness of the expense tracker. Without this feature, there’s no way to analyze spending patterns or categories over time.

Proposed solution

Implement logic in monthly_summary() to:

Read expense entries from the CSV file.

Filter entries by the current month.

Aggregate totals by category.

Return or display a structured summary (e.g., dictionary, table, or formatted output).

Alternatives considered

No response

Which part of the app does this affect?

Testing

Estimated complexity

Medium (one function and one template change)

Before submitting

  • I searched existing issues and this has not been requested before.
  • This change would benefit contributors beyond my own use case.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions