Only register gdrive callback if gdrive is enabled

This commit is contained in:
Ozzieisaacs 2020-12-11 15:53:10 +01:00
parent db91577485
commit 8b605aeaa8

3
cps.py
View File

@ -31,7 +31,7 @@ else:
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'vendor'))
from cps import create_app
from cps import create_app, config
from cps import web_server
from cps.opds import opds
from cps.web import web
@ -64,6 +64,7 @@ def main():
app.register_blueprint(about)
app.register_blueprint(shelf)
app.register_blueprint(admi)
if config.config_use_google_drive:
app.register_blueprint(gdrive)
app.register_blueprint(editbook)
if kobo_available: