Skip to content

Commit

Permalink
Update conditional statement for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-chaban committed Dec 6, 2024
1 parent dac4e2c commit a589c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgtg_scanner/notifiers/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async def _send(self, item: Union[Item, Reservation]) -> None: # type: ignore[o
if self.image:
image = self._unmask_image(self.image, item)
elif isinstance(item, Reservation):
message = escape_markdown(f"{item.display_name} is reserved for 5 minutes" if item.amount == 1 else f"{item.display_name} ({item.amount} bags) are reserved for 5 minutes", version=2)
message = escape_markdown(f"{item.display_name} ({item.amount} bags) are reserved for 5 minutes" if item.amount > 1 else f"{item.display_name} is reserved for 5 minutes", version=2)
else:
return
await self._send_message(message, image)
Expand Down

0 comments on commit a589c92

Please sign in to comment.