Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterc
Commits
8b194f1a
Commit
8b194f1a
authored
Feb 21, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix match result display: use actual fight winner instead of UNDER/OVER as main result
parent
afd67412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
games_thread.py
mbetterclient/core/games_thread.py
+20
-3
No files found.
mbetterclient/core/games_thread.py
View file @
8b194f1a
...
...
@@ -3296,9 +3296,26 @@ class GamesThread(ThreadedComponent):
winning_outcome_names
=
extraction_winning_outcome_names
logger
.
info
(
f
"DEBUG _update_bet_results: Using pre-filtered winning outcomes: {winning_outcome_names}"
)
# Set the main result (selected_result)
match
.
result
=
selected_result
logger
.
info
(
f
"DEBUG _update_bet_results: Set match.result to '{selected_result}'"
)
# Set the main result
# If selected_result is UNDER/OVER, use the first winning outcome as the main result
# (the actual fight winner like WIN1, X, WIN2)
if
selected_result
in
[
'UNDER'
,
'OVER'
]
and
extraction_winning_outcome_names
:
# Find the first non-UNDER/OVER winning outcome as the main result
main_result
=
None
for
outcome
in
extraction_winning_outcome_names
:
if
outcome
not
in
[
'UNDER'
,
'OVER'
]:
main_result
=
outcome
break
if
main_result
:
match
.
result
=
main_result
logger
.
info
(
f
"DEBUG _update_bet_results: selected_result is UNDER/OVER, set match.result to '{main_result}' from winning outcomes"
)
else
:
# If no non-UNDER/OVER outcome found, use selected_result
match
.
result
=
selected_result
logger
.
info
(
f
"DEBUG _update_bet_results: No non-UNDER/OVER winning outcome found, set match.result to '{selected_result}'"
)
else
:
match
.
result
=
selected_result
logger
.
info
(
f
"DEBUG _update_bet_results: Set match.result to '{selected_result}'"
)
# Set winning outcomes as JSON array in separate field
if
extraction_winning_outcome_names
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment