master
janko 2022-10-31 18:23:00 +01:00
parent a5de5f9e35
commit 8b115c98ad
1 changed files with 0 additions and 2 deletions

View File

@ -16,7 +16,6 @@ bp = Blueprint('upload', __name__, url_prefix='/upload')
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'])
@ -43,7 +42,6 @@ def upload_file():
return render_template("upload.html", username=username)
#prevent duplicate filenames
print(filename)
if dbsession.query(Card).filter(Card.title == filename).first() != None:
flash("Filename already in database, please rename if you want to upload: " + filename, 'error')
continue