Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-bigbluebutton2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Grupp
python-bigbluebutton2
Commits
a31d4567
Verified
Commit
a31d4567
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Include attendees when converting meeting to dict
Fix a few bugs on the move
parent
bd2446a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bigbluebutton/api/attendee.py
+2
-2
2 additions, 2 deletions
bigbluebutton/api/attendee.py
bigbluebutton/api/meeting.py
+12
-7
12 additions, 7 deletions
bigbluebutton/api/meeting.py
with
14 additions
and
9 deletions
bigbluebutton/api/attendee.py
+
2
−
2
View file @
a31d4567
...
...
@@ -6,7 +6,7 @@ from dataclasses import dataclass
from
enum
import
Enum
from
typing
import
Optional
from
.util
import
camel_to_snake
,
to_field_type
from
.util
import
camel_to_snake
,
snake_to_camel
,
to_field_type
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -110,7 +110,7 @@ class Attendee:
continue
if
name
==
"
meeting
"
:
res
[
"
meetingID
"
]
=
meeting
.
meeting_id
res
[
"
meetingID
"
]
=
self
.
meeting
.
meeting_id
elif
value
is
not
None
:
if
name
in
kwargs
:
camel_name
=
kwargs
[
name
]
...
...
This diff is collapsed.
Click to expand it.
bigbluebutton/api/meeting.py
+
12
−
7
View file @
a31d4567
...
...
@@ -102,7 +102,13 @@ class Meeting:
if
args
and
name
not
in
args
and
name
not
in
kwargs
:
continue
if
name
not
in
(
"
api
"
,
"
meta
"
)
and
value
is
not
None
:
if
name
==
"
api
"
:
continue
elif
name
==
"
meta
"
:
res
[
"
meta
"
]
=
self
.
meta
elif
name
==
"
attendees
"
:
res
[
"
attendees
"
]
=
{
"
attendee
"
:
[{
full_name
:
attendee
.
to_dict
()
for
full_name
,
attendee
in
self
.
attendees
.
items
()}]}
elif
value
is
not
None
:
if
name
in
kwargs
:
camel_name
=
kwargs
[
name
]
else
:
...
...
@@ -115,17 +121,16 @@ class Meeting:
res
[
camel_name
]
=
str_value
res
[
"
meta
"
]
=
self
.
meta
return
res
def
get_url_args
(
self
,
*
args
,
**
kwargs
)
->
dict
:
url_args
=
self
.
to_dict
(
*
args
,
**
kwargs
)
# Unpack meta dictionary as values are passed one by one in URL
for
name
,
value
in
url_args
[
"
meta
"
].
items
():
url_args
[
"
meta_
"
+
name
]
=
value
del
url_args
[
"
meta
"
]
if
"
meta
"
in
url_args
:
# Unpack meta dictionary as values are passed one by one in URL
for
name
,
value
in
url_args
[
"
meta
"
].
items
():
url_args
[
"
meta_
"
+
name
]
=
value
del
url_args
[
"
meta
"
]
return
url_args
...
...
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