Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show side abbrevations on the motion statistics page again. #2520

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

teymour-aldridge
Copy link
Contributor

Tabbycat used to show side names, but at some point this broke. This commit fixes this.

@@ -236,16 +244,17 @@ def _collate_prelim_motion_annotations(self):
motion.counts_by_bench = {'gov': 0, 'opp': 0}

for side in self.tournament.sides:
side_abbrv = abbrv_of_bp_side(side)
Copy link
Member

@tienne-B tienne-B Oct 31, 2024

Choose a reason for hiding this comment

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

Should use tournaments.utils.get_side_name like:

side_abbr = get_side_name(side, 'abbr')

Then we wouldn't need the new function.

Does this also affect two-team formats? Should also fix there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I've updated it to use that function.

I don't believe it affects two-team formats (e.g. here this problem doesn't seem to exist https://edudrift.calicotab.com/australs2024/motions/statistics/).

Tabbycat used to show side names, but at some point this broke. This commit fixes this.
@tienne-B tienne-B merged commit 228b5b6 into TabbycatDebate:develop Oct 31, 2024
4 checks passed
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