Skip to content

Conversation

@SourajyotiKarmakar25
Copy link

Fix: Add subject-name to assignment display

Closes #18

What?

Updated the list command to include the subject name when displaying assignments.

Why?

Previously, python main.py list only showed titles and deadlines. Adding the subject name provides better context for users while maintaining a clean interface for assignments without a linked subject.

How?

Modified the display logic to check for the existence of a subject-name.

  • If present: Displays Title [Subject] (Deadline).
  • If absent: Displays only Title (Deadline) (default behavior).

Testing

  1. Run python main.py list with assignments that have subjects.
  2. Run python main.py list with assignments that do NOT have subjects.
  3. Verify the subject name appears only when intended.

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.

Feature: Show subject in assignment list

1 participant