Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
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
captainwong
douban-api-proxy
Commits
e4ffc9f2
Commit
e4ffc9f2
authored
Apr 06, 2016
by
Cervinko Cera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set last_modified when pdf is uploaded
parent
4e062147
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web.py
cps/web.py
+1
-1
No files found.
cps/web.py
View file @
e4ffc9f2
...
...
@@ -786,7 +786,7 @@ def upload():
else
:
db_author
=
db
.
Authors
(
author
,
""
,
""
)
db
.
session
.
add
(
db_author
)
db_book
=
db
.
Books
(
title
,
""
,
""
,
datetime
.
datetime
.
now
(),
""
,
1
,
datetime
.
datetime
(
101
,
01
,
01
),
author_dir
+
"/"
+
title_dir
,
has_cover
,
db_author
,
[])
db_book
=
db
.
Books
(
title
,
""
,
""
,
datetime
.
datetime
.
now
(),
datetime
.
datetime
(
101
,
01
,
01
),
1
,
datetime
.
datetime
.
now
(
),
author_dir
+
"/"
+
title_dir
,
has_cover
,
db_author
,
[])
db_book
.
authors
.
append
(
db_author
)
db_data
=
db
.
Data
(
db_book
,
fileextension
.
upper
()[
1
:],
file_size
,
data_name
)
db_book
.
data
.
append
(
db_data
)
...
...
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