Skip to content

Commit

Permalink
feat: show drop in slotlist if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
deadaf committed Jan 24, 2024
1 parent a5f9500 commit b460b5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/models/esports/scrims.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ def default_slotlist_format():
async def create_slotlist(self):
_slots = await self.cleaned_slots()

desc = "\n".join(f"Slot {slot.num:02} -> {slot.team_name}" for slot in _slots)
desc = "\n".join(
f"Slot {slot.num:02} -> {slot.team_name}"
+ (f"( {slot.drop_location} )" if slot.drop_location != "None" else "")
for slot in _slots
)

if len(self.slotlist_format) <= 1:
text = str(self.default_slotlist_format().to_dict())
Expand Down

0 comments on commit b460b5b

Please sign in to comment.