Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
2df5050b
Verified
Commit
2df5050b
authored
10 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
fix: replace cameCased keys
parent
59390283
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/serializers.py
+3
-3
3 additions, 3 deletions
program/serializers.py
with
3 additions
and
3 deletions
program/serializers.py
+
3
−
3
View file @
2df5050b
...
...
@@ -1100,14 +1100,14 @@ class RadioSettingsSerializer(serializers.ModelSerializer):
if
self
.
context
.
get
(
"
request
"
).
user
.
is_authenticated
:
return
{
"
api_key
"
:
obj
.
cba_api_key
,
"
domain
"
:
obj
.
cba_domains
,
"
domain
s
"
:
obj
.
cba_domains
,
}
else
:
return
{
"
domains
"
:
obj
.
cba_domains
}
@staticmethod
def
get_programme
(
obj
)
->
dict
[
str
,
int
]:
return
{
"
fallback
S
how
I
d
"
:
obj
.
fallback_show
.
id
if
obj
.
fallback_show
else
None
}
return
{
"
fallback
_s
how
_i
d
"
:
obj
.
fallback_show
.
id
if
obj
.
fallback_show
else
None
}
@staticmethod
def
get_playout
(
obj
)
->
dict
[
str
,
dict
[
str
,
str
]]:
...
...
@@ -1117,6 +1117,6 @@ class RadioSettingsSerializer(serializers.ModelSerializer):
def
get_station
(
obj
)
->
dict
[
str
,
int
|
str
]:
return
{
"
name
"
:
obj
.
station_name
,
"
logo
I
d
"
:
obj
.
station_logo
.
id
if
obj
.
station_logo
else
None
,
"
logo
_i
d
"
:
obj
.
station_logo
.
id
if
obj
.
station_logo
else
None
,
"
website
"
:
obj
.
station_website
,
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment