Commit Graph

80 Commits

Author SHA1 Message Date
Daniel Schädler 26679d87c2 Add sync snapshot tracking 2026-04-14 22:36:39 +02:00
Daniel Schädler c4f182a6a8 Stabilize follow sync CI network checks 2026-04-14 22:11:34 +02:00
Daniel Schädler 4d9255354b Reset sync retries on new snapshots 2026-04-14 21:34:04 +02:00
Daniel Schädler 871ad84a48 Reload tournament before sync snapshot 2026-04-14 15:49:02 +02:00
Daniel Schädler 8ab53fa854 Fix follower sync E2E helper 2026-04-14 14:27:34 +02:00
Daniel Schädler bbb1ad97ef Make follower sync asynchronous 2026-04-13 20:54:28 +02:00
Daniel Schädler 133ebae847 Add read-only tournament follower sync 2026-04-13 20:32:34 +02:00
Daniel Schädler 4713a020fa Implement TUR-58 group stage decider matches 2026-04-12 19:13:52 +02:00
Daniel Schädler 6d21dad5d7 Fix final match completion after group stage 2026-04-12 18:07:08 +02:00
Daniel Schädler eedafe1276 Add ranking decision metadata for group scores 2026-04-12 17:47:28 +02:00
Daniel Schädler bb61d514a0 Fix Utils call 2025-03-09 19:34:15 +01:00
Daniel Schädler cc04383191 Fix split and rotate in utils 2025-03-04 22:46:05 +01:00
Daniel Schädler 6fcdeac054 Move array splitting and rotating to utils 2025-03-04 21:34:16 +01:00
Tobias Huber fdfea9100d comments 2025-03-02 13:22:20 +01:00
Tobias Huber 5a7ff67e73 needs testing 2025-03-02 13:17:38 +01:00
Daniel Schädler 92acbbc221 Split up get_advancing_teams 2025-02-12 21:52:23 +01:00
Daniel Schädler f36c7817d1 Add offset for second team to make rematches possible in finale only 2025-02-12 21:47:51 +01:00
Daniel Schädler e70d16b688 Add special case for po2 teams in tournament and half advancing 2024-04-07 23:10:36 +02:00
Daniel Schädler c35905b52a Improve readability 2024-04-07 22:45:28 +02:00
Daniel Schädler b072104241 Beautify code 2024-04-07 22:01:23 +02:00
Daniel Schädler 5d857c5d82 Remove position from comparison 2024-04-07 21:40:59 +02:00
Daniel Schädler 2705cd0bdb Assign position directly 2024-04-07 21:21:17 +02:00
Daniel Schädler 4a8cb71fc4 Add and calculate position to sort group_scores by 2024-04-07 21:17:45 +02:00
Daniel Schädler 1084d836c1 Implement sorting correctly with <=> operator 2024-04-07 18:07:55 +02:00
Daniel Schädler dc0afbec14
TUR-22: Add documentation to match reordering 2022-05-20 00:25:02 +02:00
Daniel Schädler 0b6ad3f879
Improve group match order 2022-05-20 00:24:21 +02:00
Daniel Schädler c3af6f9232
Rubocop -A 2021-08-15 14:31:50 +02:00
Daniel Schädler 1a96cefbc8 Guard clause to make Hound woof 2019-11-09 00:00:43 +01:00
Daniel Schädler 8c39fa9894 Manually sort position of groups of 4 teams 2019-11-08 23:51:23 +01:00
Daniel Schädler a2691b9f88 Cache group_score in variable in sort function 2019-06-18 22:35:17 +02:00
Daniel Schädler 54ab1570b1 Sort teams more explicitly and in the right order 2019-06-18 22:22:10 +02:00
Daniel Schädler 4925ea9d83 Make teams added to PlayoffStage configurable 2019-06-18 22:22:10 +02:00
Daniel Schädler bc0c7fddc3 Make match position randomizable 2019-06-18 19:22:05 +02:00
Daniel Schädler 88cbba440d Implement methods to get teams sorted by their group scores 2019-06-18 19:22:05 +02:00
Daniel Schädler 386155a690 Fix last Match not being stopped correctly 2019-06-18 14:09:29 +02:00
Daniel Schädler 98319e9625 Assign :intermediate_stage to first stage if single_team matches present 2019-06-17 15:02:30 +02:00
Daniel Schädler 5f378f27b2 Correct position for :single_team matches 2019-06-17 15:02:30 +02:00
Daniel Schädler 8e3325bbfc Simplify concatenation of empty stages 2019-06-17 15:02:30 +02:00
Thor77 914cfbd94d
Reword error on invalid match state 2019-06-17 13:48:50 +02:00
Thor77 175870ab42
Prevent betting on running/finished matches 2019-06-17 13:48:50 +02:00
Thor77 167a2116f1
Prevent duplicate bets on the same match 2019-06-17 13:48:50 +02:00
Thor77 b9aaccb487
Raise UserServiceError instead of StandardError 2019-06-17 13:48:49 +02:00
Thor77 2f0127897e
Add UserService 2019-06-17 13:48:49 +02:00
Daniel Schädler db70e33882 Assign number to each group 2019-06-17 13:37:06 +02:00
Daniel Schädler 2e336262aa Add state to stage
This state is required to stop the group stage and trigger playoff
generation, it is (for now) irrelevant for anything other than that.
2019-06-13 13:21:24 +02:00
Daniel Schädler f04c11427a Assign default values on Group Stage creation
default values are assigned to instant_finalists_amount and
intermediate_round_participants_amount depending on playoff_teams_amount and group amount
2019-06-13 13:21:24 +02:00
Daniel Schädler 96398706ea Add GroupScore objects for every team to the group stage 2019-06-05 09:49:21 +02:00
Daniel Schädler d556e3e833 Implement update_group_score method
This method calculates all the group scores of the group given to it
2019-06-05 09:49:21 +02:00
Daniel Schädler a4ea0cf979 Move self methods into self block 2019-06-05 09:26:11 +02:00
Daniel Schädler 6f44823bc6 Change match state of match below 2019-05-26 20:15:59 +02:00