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
jshong0907
2020-06-14 05:30:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d77d25b5c4a784bdd6cf936321c71b4fb87e8a2
3d77d25b
1 parent
08274a9c
fix user api
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
khubox-api/khubox/services/users.py
khubox-api/khubox/services/users.py
View file @
3d77d25
...
...
@@ -53,7 +53,7 @@ def create(request):
created_at
=
timezone
.
now
()
)
File
.
objects
.
create
(
id
=
uuid
.
uuid4
()
,
id
=
root_folder
,
owner_user_id
=
user
.
id
,
type
=
'folder'
,
name
=
'user_
%
s'
%
user
.
id
,
...
...
@@ -113,7 +113,7 @@ def find_me(request):
'email'
:
user
[
0
]
.
email
,
'name'
:
user
[
0
]
.
name
,
'root_folder'
:
user
[
0
]
.
root_folder
,
'created_at'
:
str
(
user
[
0
]
.
created_at
)
'created_at'
:
user
[
0
]
.
created_at
}
return
{
'result'
:
True
,
'data'
:
data
}
...
...
Please
register
or
login
to post a comment