cleanup
parent
a5de5f9e35
commit
8b115c98ad
|
@ -16,7 +16,6 @@ bp = Blueprint('upload', __name__, url_prefix='/upload')
|
||||||
|
|
||||||
|
|
||||||
nc = nextcloud_client.Client('https://obzorje.kompot.si')
|
nc = nextcloud_client.Client('https://obzorje.kompot.si')
|
||||||
#print("Loggin in", CONFIG['NC_USER'], CONFIG['NC_PASSWORD'])
|
|
||||||
nc.login(CONFIG['NC_USER'],CONFIG['NC_PASSWORD'])
|
nc.login(CONFIG['NC_USER'],CONFIG['NC_PASSWORD'])
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +42,6 @@ def upload_file():
|
||||||
return render_template("upload.html", username=username)
|
return render_template("upload.html", username=username)
|
||||||
|
|
||||||
#prevent duplicate filenames
|
#prevent duplicate filenames
|
||||||
print(filename)
|
|
||||||
if dbsession.query(Card).filter(Card.title == filename).first() != None:
|
if dbsession.query(Card).filter(Card.title == filename).first() != None:
|
||||||
flash("Filename already in database, please rename if you want to upload: " + filename, 'error')
|
flash("Filename already in database, please rename if you want to upload: " + filename, 'error')
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue