Skip to content

Conversation

@Rashed-alothman
Copy link
Owner

  • Changed class name from 'tasks' to 'Task' (PEP 8 convention)
  • Fixed UUID generation using lambda: str(uuid4())[:8]
  • Updated due_date type to Mapped[Optional[datetime]]
  • Added null check in repr() method
  • Added to_dict() method for API serialization
  • Added created_at field with datetime.utcnow default

…eneration

- Changed class name from 'tasks' to 'Task' (PEP 8 convention)
- Fixed UUID generation using lambda: str(uuid4())[:8]
- Updated due_date type to Mapped[Optional[datetime]]
- Added null check in __repr__() method
- Added to_dict() method for API serialization
- Added created_at field with datetime.utcnow default
@Rashed-alothman Rashed-alothman merged commit 0049e5c into main Dec 20, 2025
3 of 6 checks passed
@Rashed-alothman Rashed-alothman deleted the fix/uuid-generation branch December 21, 2025 12:52
@Rashed-alothman Rashed-alothman self-assigned this Dec 23, 2025
@Rashed-alothman Rashed-alothman added the enhancement New feature or request label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants