mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 17:26:26 +01:00
Several minor changes (pylint)
This commit is contained in:
parent
fb13e396e5
commit
56d01ee3e2
@ -39,8 +39,9 @@ def load_config():
|
|||||||
app.config.from_object(user_config)
|
app.config.from_object(user_config)
|
||||||
|
|
||||||
if os.path.abspath(app.config["INSTANCE_PATH"]) != app.instance_path:
|
if os.path.abspath(app.config["INSTANCE_PATH"]) != app.instance_path:
|
||||||
print("[ERROR] Using two different instance path. \
|
print(("[ERROR] Using two different instance path.\n"
|
||||||
\nPlease modify INSTANCE_PATH only in default_config.py and remove it from $INSTANCE_PATH/config.py")
|
"Please modify INSTANCE_PATH only in default_config.py ",
|
||||||
|
"and remove it from $INSTANCE_PATH/config.py"))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print("[WARNING] Using default config")
|
print("[WARNING] Using default config")
|
||||||
|
@ -5,7 +5,6 @@ import os
|
|||||||
|
|
||||||
from flask import current_app, abort, Blueprint, send_file
|
from flask import current_app, abort, Blueprint, send_file
|
||||||
|
|
||||||
from .db import get_db
|
|
||||||
from .auth import login_required
|
from .auth import login_required
|
||||||
|
|
||||||
bp = Blueprint("thumbnails", __name__, url_prefix="/thumbnails")
|
bp = Blueprint("thumbnails", __name__, url_prefix="/thumbnails")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
Loading…
Reference in New Issue
Block a user