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
66181daf
Commit
66181daf
authored
Apr 02, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'custom-dbpath'
parents
79d5bab4
2c173f98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
gdriveutils.py
cps/gdriveutils.py
+3
-2
ub.py
cps/ub.py
+1
-1
No files found.
cps/gdriveutils.py
View file @
66181daf
...
...
@@ -207,9 +207,10 @@ def backupCalibreDbAndOptionalDownload(drive, f=None):
if
f
:
databaseFile
.
GetContentFile
(
f
)
def
copyToDrive
(
drive
,
uploadFile
,
createRoot
,
replaceFiles
,
ignoreFiles
=
[],
parent
=
None
,
prevDir
=
''
):
ignoreFiles
=
[],
parent
=
None
,
prevDir
=
''
):
if
not
drive
:
drive
=
getDrive
()
if
drive
.
auth
.
access_token_expired
:
...
...
cps/ub.py
View file @
66181daf
...
...
@@ -13,7 +13,7 @@ from flask_babel import gettext as _
import
json
#from builtins import str
dbpath
=
os
.
path
.
join
(
os
.
path
.
normpath
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
os
.
sep
+
".."
+
os
.
sep
),
"app.db"
)
dbpath
=
os
.
path
.
join
(
os
.
path
.
normpath
(
os
.
getenv
(
"CALIBRE_DBPATH"
,
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
os
.
sep
+
".."
+
os
.
sep
)
),
"app.db"
)
engine
=
create_engine
(
'sqlite:///{0}'
.
format
(
dbpath
),
echo
=
False
)
Base
=
declarative_base
()
...
...
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