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
5b0da3e1
Commit
5b0da3e1
authored
Nov 19, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixture template works now
parent
0632ac59
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
520 additions
and
137 deletions
+520
-137
application.py
mbetterclient/core/application.py
+6
-2
player.py
mbetterclient/qt_player/player.py
+306
-25
fixtures.html
mbetterclient/qt_player/templates/fixtures.html
+198
-107
routes.py
mbetterclient/web_dashboard/routes.py
+10
-3
No files found.
mbetterclient/core/application.py
View file @
5b0da3e1
...
@@ -595,7 +595,9 @@ class MbetterClientApplication:
...
@@ -595,7 +595,9 @@ class MbetterClientApplication:
def
_process_core_message
(
self
,
message
:
Message
):
def
_process_core_message
(
self
,
message
:
Message
):
"""Process messages received by the core component"""
"""Process messages received by the core component"""
try
:
try
:
logger
.
debug
(
f
"Core processing message: {message}"
)
# Suppress debug logging for VIDEO_PROGRESS messages to reduce log noise
if
message
.
type
!=
MessageType
.
VIDEO_PROGRESS
:
logger
.
debug
(
f
"Core processing message: {message}"
)
if
message
.
type
==
MessageType
.
SYSTEM_STATUS
:
if
message
.
type
==
MessageType
.
SYSTEM_STATUS
:
self
.
_handle_system_status
(
message
)
self
.
_handle_system_status
(
message
)
...
@@ -608,7 +610,9 @@ class MbetterClientApplication:
...
@@ -608,7 +610,9 @@ class MbetterClientApplication:
elif
message
.
type
==
MessageType
.
SYSTEM_SHUTDOWN
:
elif
message
.
type
==
MessageType
.
SYSTEM_SHUTDOWN
:
self
.
_handle_shutdown_message
(
message
)
self
.
_handle_shutdown_message
(
message
)
else
:
else
:
logger
.
debug
(
f
"Unhandled message type in core: {message.type}"
)
# Suppress debug logging for VIDEO_PROGRESS messages to reduce log noise
if
message
.
type
!=
MessageType
.
VIDEO_PROGRESS
:
logger
.
debug
(
f
"Unhandled message type in core: {message.type}"
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
error
(
f
"Failed to process core message: {e}"
)
logger
.
error
(
f
"Failed to process core message: {e}"
)
...
...
mbetterclient/qt_player/player.py
View file @
5b0da3e1
This diff is collapsed.
Click to expand it.
mbetterclient/qt_player/templates/fixtures.html
View file @
5b0da3e1
This diff is collapsed.
Click to expand it.
mbetterclient/web_dashboard/routes.py
View file @
5b0da3e1
...
@@ -1925,7 +1925,6 @@ def save_intro_templates():
...
@@ -1925,7 +1925,6 @@ def save_intro_templates():
@
api_bp
.
route
(
'/fixtures'
)
@
api_bp
.
route
(
'/fixtures'
)
@
api_bp
.
auth_manager
.
require_auth
if
hasattr
(
api_bp
,
'auth_manager'
)
and
api_bp
.
auth_manager
else
login_required
def
get_fixtures
():
def
get_fixtures
():
"""Get all fixtures/matches grouped by fixture_id with calculated status"""
"""Get all fixtures/matches grouped by fixture_id with calculated status"""
try
:
try
:
...
@@ -2040,10 +2039,14 @@ def calculate_fixture_status(matches, today):
...
@@ -2040,10 +2039,14 @@ def calculate_fixture_status(matches, today):
@
api_bp
.
route
(
'/cashier/pending-matches'
)
@
api_bp
.
route
(
'/cashier/pending-matches'
)
@
api_bp
.
auth_manager
.
require_auth
if
hasattr
(
api_bp
,
'auth_manager'
)
and
api_bp
.
auth_manager
else
login_required
def
get_cashier_pending_matches
():
def
get_cashier_pending_matches
():
"""Get pending matches from the correct fixture for cashier dashboard"""
"""Get pending matches from the correct fixture for cashier dashboard"""
try
:
try
:
# Allow access from localhost without authentication
if
request
.
remote_addr
==
'127.0.0.1'
:
pass
# Skip authentication
elif
hasattr
(
api_bp
,
'auth_manager'
)
and
api_bp
.
auth_manager
:
api_bp
.
auth_manager
.
require_auth
()
from
..database.models
import
MatchModel
from
..database.models
import
MatchModel
from
datetime
import
datetime
,
date
,
timedelta
from
datetime
import
datetime
,
date
,
timedelta
...
@@ -2190,10 +2193,14 @@ def start_games():
...
@@ -2190,10 +2193,14 @@ def start_games():
@
api_bp
.
route
(
'/fixtures/<fixture_id>'
)
@
api_bp
.
route
(
'/fixtures/<fixture_id>'
)
@
api_bp
.
auth_manager
.
require_auth
if
hasattr
(
api_bp
,
'auth_manager'
)
and
api_bp
.
auth_manager
else
login_required
def
get_fixture_details
(
fixture_id
):
def
get_fixture_details
(
fixture_id
):
"""Get all matches in a fixture by fixture_id"""
"""Get all matches in a fixture by fixture_id"""
try
:
try
:
# Allow access from localhost without authentication
if
request
.
remote_addr
==
'127.0.0.1'
:
pass
# Skip authentication
elif
hasattr
(
api_bp
,
'auth_manager'
)
and
api_bp
.
auth_manager
:
api_bp
.
auth_manager
.
require_auth
()
from
..database.models
import
MatchModel
,
MatchOutcomeModel
from
..database.models
import
MatchModel
,
MatchOutcomeModel
from
datetime
import
datetime
,
date
from
datetime
import
datetime
,
date
...
...
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