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
f21c65ac
Commit
f21c65ac
authored
Jan 31, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Bugfix Migration of database for config_log_level
- Bugfix Updater deleting temporary sourcefolder
parent
c45968a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
helper.py
cps/helper.py
+1
-1
ub.py
cps/ub.py
+1
-1
No files found.
cps/helper.py
View file @
f21c65ac
...
...
@@ -368,4 +368,4 @@ def update_source(source,destination):
os
.
remove
(
item_path
)
except
:
print
(
"Could not remove:"
+
item_path
)
#
shutil.rmtree(source, ignore_errors=True)
shutil
.
rmtree
(
source
,
ignore_errors
=
True
)
cps/ub.py
View file @
f21c65ac
...
...
@@ -325,7 +325,7 @@ def migrate_Database():
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_random_books` INTEGER DEFAULT 4"
)
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_title_regex` String DEFAULT "
"'^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)
\
s+'"
)
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_log_level` SmallInteger DEFAULT
'"
+
logging
.
INFO
+
"'"
)
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_log_level` SmallInteger DEFAULT
"
+
str
(
logging
.
INFO
)
)
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_uploading` SmallInteger DEFAULT 0"
)
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_anonbrowse` SmallInteger DEFAULT 0"
)
conn
.
execute
(
"ALTER TABLE Settings ADD column `config_public_reg` SmallInteger DEFAULT 0"
)
...
...
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