Skip to content

Fix: Add subject-name in the display of assignments. (Issue #18)#20

Merged
xenonnn4w merged 1 commit intocyclohexane-2:mainfrom
SourajyotiKarmakar25:fix-issue-18
Feb 12, 2026
Merged

Fix: Add subject-name in the display of assignments. (Issue #18)#20
xenonnn4w merged 1 commit intocyclohexane-2:mainfrom
SourajyotiKarmakar25:fix-issue-18

Conversation

@SourajyotiKarmakar25
Copy link
Contributor

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.

@xenonnn4w
Copy link
Contributor

/lgm

@xenonnn4w
Copy link
Contributor

Thanks for contribution.

@xenonnn4w xenonnn4w merged commit 72dedb9 into cyclohexane-2:main Feb 12, 2026
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

2 participants