Skip to content

Commit

Permalink
Update item.py
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 authored Jun 29, 2021
1 parent 158dabd commit b08d79d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/webqueue2api/parser/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,4 +1203,9 @@ def to_json(self) -> dict:
return self.json_data

def __repr__(self) -> str:
return self.queue + str(self.number)
display_string = f"[{self.queue}{self.number}] ({self.user_alias}) "
if len(self.subject) > 37:
display_string += f"{self.subject[:37]}..."
else:
display_string += f"{self.subject[:40]}"
return display_string

0 comments on commit b08d79d

Please sign in to comment.