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 |
Daniel Schädler
|
8bdcd51e66
|
Move all methods in playoff_stage_service into self block
|
2019-05-26 20:15:59 +02:00 |
Daniel Schädler
|
645f3d0800
|
Return changed objects in populate_match_below
|
2019-05-26 20:15:58 +02:00 |
Daniel Schädler
|
95bed3959f
|
Actually make singleton_methods private
(Rubocop told me so and I trust the police)
|
2019-05-26 20:15:58 +02:00 |
Daniel Schädler
|
cda7d168f5
|
Save match_scores explicitly after changing them
|
2019-05-26 20:15:58 +02:00 |
Daniel Schädler
|
93cea002f9
|
Change the way, existing match_scores are handled
|
2019-05-26 20:15:58 +02:00 |
Daniel Schädler
|
7a9da4e22d
|
Rearrange methods in playoff_stage_service
|
2019-05-26 20:15:58 +02:00 |
Daniel Schädler
|
27d6269f94
|
Rearrange new methods into one to split it later on
|
2019-05-26 20:15:58 +02:00 |
Daniel Schädler
|
4e907b1fc8
|
Improve Formatting in playoff_stage_service (I guess)
... Rubocop wanted it that way
|
2019-05-26 20:15:16 +02:00 |
Daniel Schädler
|
e4c868c150
|
Fix second match winner advancing, even if match is not finished
|
2019-05-26 20:15:16 +02:00 |
Daniel Schädler
|
c9b07f7033
|
Implement populate_match_below method
|
2019-05-26 20:14:13 +02:00 |