From 6f95260ce2dd22e4cf53a07dfcb54601814ebaaa Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 4 Jul 2021 20:18:58 +1000 Subject: [PATCH] remove new from fname, doh! --- person.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/person.py b/person.py index e987fe3..7ec4a00 100644 --- a/person.py +++ b/person.py @@ -150,7 +150,7 @@ def add_refimg(): if not person: raise Exception("could not find person to add reference image too!") f=request.files['refimg_file'] - refimg = Refimg( fname="new"+f.filename ) + refimg = Refimg( fname=f.filename ) try: # save the actual uploaded image to reference_images/ fname=secure_filename(f.filename)