Skip to content

Change Item repr to f"{queue}{number} ({user_alias}) {subject}" #34

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

campb303
Copy link
Collaborator

from webqueue2api import Item

item = Item("ce", 22)

# Old __repr__ output:
>>> print(item)
"ce22"

# New __repr__ output:
>>> print(item)
"[ce22] (awhelton) Laptop Battery Replacement"

@campb303
Copy link
Collaborator Author

Closes #31

@campb303 campb303 linked an issue Jun 29, 2021 that may be closed by this pull request
@campb303 campb303 merged commit 8baa833 into staging Jun 29, 2021
@campb303 campb303 deleted the update-item-repr branch June 29, 2021 02:50
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Item __repr__ to Subject/From
1 participant