Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing-E
/
E_Team_KhuBox
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
서승완
2020-06-17 04:45:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cb3004adad50f3980c8c46d8f728a9e2b80d36e9
cb3004ad
1 parent
a23724ba
feat: add group unique id when group member
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
khubox-api/khubox/services/groups.py
khubox-api/khubox/services/groups.py
View file @
cb3004a
...
...
@@ -118,6 +118,7 @@ def list_me(request):
data
=
[]
for
group
in
groups
:
data
.
append
({
'id'
:
group
.
id
,
'name'
:
group
.
name
,
'root_folder'
:
group
.
root_folder
,
})
...
...
@@ -145,6 +146,7 @@ def find_item(request, group_id):
# Serialize
data
=
{
'id'
:
group
[
0
]
.
id
,
'name'
:
group
[
0
]
.
name
,
'root_folder'
:
group
[
0
]
.
root_folder
,
}
...
...
@@ -159,7 +161,6 @@ def find_item(request, group_id):
'id'
:
user
.
id
,
'name'
:
user
.
name
,
})
data
[
'id'
]
=
group
[
0
]
.
id
data
[
'users'
]
=
user_data
data
[
'invite_code'
]
=
group
[
0
]
.
invite_code
data
[
'is_owner'
]
=
True
...
...
Please
register
or
login
to post a comment