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
8cc84948
Commit
8cc84948
authored
Mar 21, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cosmetics
parent
d3f8153b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
admin.py
cps/admin.py
+2
-4
No files found.
cps/admin.py
View file @
8cc84948
...
...
@@ -31,7 +31,6 @@ from datetime import datetime, timedelta
from
babel
import
Locale
as
LC
from
babel.dates
import
format_datetime
from
babel.core
import
UnknownLocaleError
from
flask
import
Blueprint
,
flash
,
redirect
,
url_for
,
abort
,
request
,
make_response
,
send_from_directory
,
g
from
flask_login
import
login_required
,
current_user
,
logout_user
,
confirm_login
from
flask_babel
import
gettext
as
_
...
...
@@ -40,7 +39,7 @@ from sqlalchemy.orm.attributes import flag_modified
from
sqlalchemy.exc
import
IntegrityError
,
OperationalError
,
InvalidRequestError
from
sqlalchemy.sql.expression
import
func
,
or_
from
.
import
constants
,
logger
,
helper
,
services
,
isoLanguages
from
.
import
constants
,
logger
,
helper
,
services
from
.cli
import
filepicker
from
.
import
db
,
calibre_db
,
ub
,
web_server
,
get_locale
,
config
,
updater_thread
,
babel
,
gdriveutils
from
.helper
import
check_valid_domain
,
send_test_mail
,
reset_password
,
generate_password_hash
...
...
@@ -63,7 +62,7 @@ feature_support = {
}
try
:
import
rarfile
import
rarfile
# pylint: disable=unused-import
feature_support
[
'rar'
]
=
True
except
(
ImportError
,
SyntaxError
):
feature_support
[
'rar'
]
=
False
...
...
@@ -284,7 +283,6 @@ def list_users():
@
admin_required
def
delete_user
():
# ToDo User delete check also not last one
pass
return
""
@
admi
.
route
(
"/ajax/getlocale"
)
...
...
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