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-15 00:39:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0dc40159f98107c7415d5dc75aa8787479cd71ae
0dc40159
1 parent
7710069c
Builds for 1 pipeline
passed
in 11 minutes 57 seconds
fix: check name is empty
Changes
2
Builds
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
khubox-api/khubox/services/files.py
khubox-api/khubox/services/users.py
khubox-api/khubox/services/files.py
View file @
0dc4015
...
...
@@ -271,6 +271,8 @@ def update_item(request, file_id):
# Update
if
'name'
in
received
:
if
received
[
'name'
]
==
''
:
return
{
'result'
:
False
,
'error'
:
'이름을 제대로 입력해주세요.'
}
file
[
0
]
.
name
=
received
[
'name'
]
if
'parent_id'
in
received
:
file
[
0
]
.
parent_id
=
received
[
'parent_id'
]
...
...
khubox-api/khubox/services/users.py
View file @
0dc4015
...
...
@@ -148,6 +148,8 @@ def update_me(request):
# Change Name
if
'name'
in
received
:
if
len
(
received
[
'name'
])
==
0
:
return
{
'result'
:
False
,
'error'
:
'이름을 제대로 입력해주세요.'
}
user
[
0
]
.
name
=
received
[
'name'
]
# Change Password
...
...
Please
register
or
login
to post a comment