diff --git a/parseFitFiles.py b/parseFitFiles.py index 6f1406d..01617d2 100644 --- a/parseFitFiles.py +++ b/parseFitFiles.py @@ -129,7 +129,8 @@ def writeDB(): def deleteFiles(filename): try: - file = filename.remove(ext) + file = filename[:-3] + print(file) os.unlink(path+file+".*") print("lösche", file) except Exception as e: