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
eda13efa
Commit
eda13efa
authored
Feb 20, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix overlay timer API: use web_dashboard.current_timer_state instead of games_thread
parent
95fd0fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
routes.py
mbetterclient/web_dashboard/routes.py
+5
-4
No files found.
mbetterclient/web_dashboard/routes.py
View file @
eda13efa
...
@@ -10856,11 +10856,12 @@ def get_overlay_timer():
...
@@ -10856,11 +10856,12 @@ def get_overlay_timer():
timer_state
=
{
"running"
:
False
,
"remaining_seconds"
:
0
}
timer_state
=
{
"running"
:
False
,
"remaining_seconds"
:
0
}
# Try to get timer state from
games thread
# Try to get timer state from
web_dashboard (where it's actually stored)
if
main_app
:
if
main_app
:
games_thread
=
getattr
(
main_app
,
'games_thread'
,
None
)
web_dashboard
=
getattr
(
main_app
,
'web_dashboard'
,
None
)
if
games_thread
and
hasattr
(
games_thread
,
'timer_state'
):
if
web_dashboard
and
hasattr
(
web_dashboard
,
'current_timer_state'
):
timer_state
=
games_thread
.
timer_state
.
copy
()
timer_state
=
web_dashboard
.
current_timer_state
.
copy
()
logger
.
debug
(
f
"[OVERLAY TIMER] Returning timer state: {timer_state}"
)
return
jsonify
(
timer_state
)
return
jsonify
(
timer_state
)
...
...
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