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
0091006a
Commit
0091006a
authored
Sep 07, 2018
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #611
Fix for #615
parent
b48de7dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
web.py
cps/web.py
+4
-9
No files found.
cps/web.py
View file @
0091006a
...
...
@@ -57,10 +57,7 @@ from flask_principal import Principal
from
flask_principal
import
__version__
as
flask_principalVersion
from
flask_babel
import
Babel
from
flask_babel
import
gettext
as
_
import
requests
# import zipfile
# import tarfile
from
werkzeug.security
import
generate_password_hash
,
check_password_hash
from
werkzeug.datastructures
import
Headers
from
babel
import
Locale
as
LC
...
...
@@ -86,6 +83,8 @@ import converter
import
tempfile
import
hashlib
from
redirect
import
redirect_back
import
time
import
server
try
:
from
urllib.parse
import
quote
...
...
@@ -98,11 +97,6 @@ try:
except
ImportError
:
from
flask_login.__about__
import
__version__
as
flask_loginVersion
# import codecs
import
time
import
server
# import random
current_milli_time
=
lambda
:
int
(
round
(
time
.
time
()
*
1000
))
...
...
@@ -2772,6 +2766,7 @@ def view_configuration():
@
app
.
route
(
"/config"
,
methods
=
[
"GET"
,
"POST"
])
@
unconfigured
def
basic_configuration
():
logout_user
()
return
configuration_helper
(
1
)
...
...
@@ -2893,7 +2888,7 @@ def configuration_helper(origin):
if
content
.
config_logfile
!=
to_save
[
"config_logfile"
]:
# check valid path, only path or file
if
os
.
path
.
dirname
(
to_save
[
"config_logfile"
]):
if
os
.
path
.
exists
(
os
.
path
.
dirname
(
to_save
[
"config_log
_level
"
])):
if
os
.
path
.
exists
(
os
.
path
.
dirname
(
to_save
[
"config_log
file
"
])):
content
.
config_logfile
=
to_save
[
"config_logfile"
]
else
:
ub
.
session
.
commit
()
...
...
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