Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hunter-ht.cn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘莹莹
hunter-ht.cn
Commits
bb75078f
Commit
bb75078f
authored
Apr 29, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除作者多余空格
parent
271f7c23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
views.py
Hunter_ht/hunter/views.py
+2
-2
No files found.
Hunter_ht/hunter/views.py
View file @
bb75078f
...
...
@@ -401,7 +401,7 @@ def add_publication(request):
Publications
.
objects
.
create
(
pubID
=
pubID
,
title
=
title
,
link
=
link
,
messages
=
'kidding'
,
authors
=
authors
,
journalname
=
journalname
,
uploadByUser
=
uploadby
,
date
=
date
,)
except
ProgrammingError
as
e
:
return
JsonResponse
({
"message"
:
0
})
authorArr
=
authors
.
split
(
','
)
authorArr
=
authors
.
split
(
','
)
.
strip
()
print
(
authorArr
)
for
author
in
authorArr
:
users_list
=
User
.
objects
.
all
()
.
values
(
'name'
)
...
...
@@ -484,7 +484,7 @@ def profile_submit(request):
pwd
=
request
.
POST
[
"pwd"
]
mail
=
request
.
POST
[
"mail"
]
website
=
request
.
POST
[
"website"
]
if
len
(
str
(
pwd
)
.
strip
())
>
0
:
if
len
(
str
(
pwd
)
.
strip
())
>
0
:
try
:
User
.
objects
.
filter
(
userID
=
userID
)
.
update
(
name_hanzi
=
name_hanzi
,
name_eng
=
name_eng
,
pwd
=
pwd
,
mailAddress
=
mail
,
personal_website
=
website
)
return
JsonResponse
({
'message'
:
1
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment