Skip to content

Comments

Added "Delay" functionality to the public schedule #2802

Open
JWPCode wants to merge 1 commit intoTabbycatDebate:developfrom
JWPCode:feature/Manual_delay
Open

Added "Delay" functionality to the public schedule #2802
JWPCode wants to merge 1 commit intoTabbycatDebate:developfrom
JWPCode:feature/Manual_delay

Conversation

@JWPCode
Copy link
Contributor

@JWPCode JWPCode commented Jan 19, 2026

As we know debating tournaments rarely run on time, and I saw on the gitHub the intention to have the public schedule update with how late the tournament is running. This PR lays the ground work for having the delay automatically calculated, with changes to models and adding a delay property to the tournament. Currently this allows the Tab team to manually set the delay, witch will be shown next to the events that day. I think the UX could use some work and welcome any feedback on changes before closing this PR

Copy link
Member

@tienne-B tienne-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and it's a good start for automatic calculations! Just got a few typos to fix.


@property
def delay(self):
"""Returns an intiger representing how delayed the tournament is in minutes."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Returns an intiger representing how delayed the tournament is in minutes."""
"""Returns an integer representing how delayed the tournament is in minutes."""


delayed_starts = []
for ev in schedule_events:
defualt_start = timezone.localtime(ev.start_time)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defualt_start = timezone.localtime(ev.start_time)
default_start = timezone.localtime(ev.start_time)

delayed_starts.append(delayed_time.strftime("%H:%M") + f" (+{self.tournament.delay} minutes)")

if delayed_starts.count("") != len(delayed_starts):
self.add_column({'title': _("Delayed Start Time"), 'key': _("Delayed Start")}, delayed_starts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.add_column({'title': _("Delayed Start Time"), 'key': _("Delayed Start")}, delayed_starts)
self.add_column({'title': _("Delayed Start Time"), 'key': 'delayed'}, delayed_starts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants