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
a538f323
Commit
a538f323
authored
Jan 23, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bomp version
parent
92f02e36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
settings.py
mbetterclient/config/settings.py
+9
-2
No files found.
mbetterclient/config/settings.py
View file @
a538f323
...
@@ -400,11 +400,15 @@ class AppSettings:
...
@@ -400,11 +400,15 @@ class AppSettings:
def
to_dict
(
self
)
->
Dict
[
str
,
Any
]:
def
to_dict
(
self
)
->
Dict
[
str
,
Any
]:
"""Convert settings to dictionary"""
"""Convert settings to dictionary"""
# Create a copy of API config without user_agent (it's hardcoded)
api_dict
=
self
.
api
.
__dict__
.
copy
()
api_dict
.
pop
(
'user_agent'
,
None
)
return
{
return
{
"database"
:
self
.
database
.
__dict__
,
"database"
:
self
.
database
.
__dict__
,
"web"
:
self
.
web
.
__dict__
,
"web"
:
self
.
web
.
__dict__
,
"qt"
:
self
.
qt
.
__dict__
,
"qt"
:
self
.
qt
.
__dict__
,
"api"
:
self
.
api
.
__dict__
,
"api"
:
api_dict
,
"logging"
:
self
.
logging
.
__dict__
,
"logging"
:
self
.
logging
.
__dict__
,
"screen_cast"
:
self
.
screen_cast
.
__dict__
,
"screen_cast"
:
self
.
screen_cast
.
__dict__
,
"general"
:
self
.
general
.
__dict__
,
"general"
:
self
.
general
.
__dict__
,
...
@@ -434,7 +438,10 @@ class AppSettings:
...
@@ -434,7 +438,10 @@ class AppSettings:
if
"qt"
in
data
:
if
"qt"
in
data
:
settings
.
qt
=
QtConfig
(
**
data
[
"qt"
])
settings
.
qt
=
QtConfig
(
**
data
[
"qt"
])
if
"api"
in
data
:
if
"api"
in
data
:
settings
.
api
=
ApiConfig
(
**
data
[
"api"
])
# Create API config but preserve the hardcoded user_agent
api_data
=
data
[
"api"
]
.
copy
()
api_data
.
pop
(
'user_agent'
,
None
)
# Remove any stored user_agent to use default
settings
.
api
=
ApiConfig
(
**
api_data
)
if
"logging"
in
data
:
if
"logging"
in
data
:
settings
.
logging
=
LoggingConfig
(
**
data
[
"logging"
])
settings
.
logging
=
LoggingConfig
(
**
data
[
"logging"
])
if
"screen_cast"
in
data
:
if
"screen_cast"
in
data
:
...
...
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