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
76c724c7
Commit
76c724c7
authored
Sep 14, 2020
by
blitzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove global session object, this is now wrapped in the CalibreDB class
parent
032cb593
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
db.py
cps/db.py
+0
-5
convert.py
cps/tasks/convert.py
+1
-1
No files found.
cps/db.py
View file @
76c724c7
...
...
@@ -51,8 +51,6 @@ try:
except
ImportError
:
use_unidecode
=
False
Session
=
None
cc_exceptions
=
[
'datetime'
,
'comments'
,
'composite'
,
'series'
]
cc_classes
=
{}
...
...
@@ -439,9 +437,6 @@ class CalibreDB():
cls
.
config
=
config
cls
.
dispose
()
# todo: remove...?
global
Session
if
not
config
.
config_calibre_dir
:
config
.
invalidate
()
return
False
...
...
cps/tasks/convert.py
View file @
76c724c7
...
...
@@ -53,7 +53,7 @@ class TaskConvert(CalibreTask):
def
_convert_ebook_format
(
self
):
error_message
=
None
local_session
=
db
.
Session
()
local_session
=
db
.
CalibreDB
()
file_path
=
self
.
file_path
book_id
=
self
.
bookid
format_old_ext
=
u'.'
+
self
.
settings
[
'old_book_format'
]
.
lower
()
...
...
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