the merging broke the code, so new push

This commit is contained in:
StarShine 2020-09-10 10:45:07 +02:00
parent 4f4eb910ab
commit 3f7f9fd958
1 changed files with 0 additions and 7 deletions

View File

@ -21,18 +21,11 @@ def ocr(filename):
def namecleaner(filename): def namecleaner(filename):
print("filenameis "+filename) print("filenameis "+filename)
<<<<<<< HEAD
filename = "_".join(filename.split()) # Get rig of line braks and spaces filename = "_".join(filename.split()) # Get rig of line braks and spaces
filename = filename.replace("__","_") # Cleaning duplicated '_'s filename = filename.replace("__","_") # Cleaning duplicated '_'s
filename = filename.replace(" ","") # Get rig of spaces(For recursion) filename = filename.replace(" ","") # Get rig of spaces(For recursion)
filename = filename.replace("\n","") # Get rig of line braks(For recursion) filename = filename.replace("\n","") # Get rig of line braks(For recursion)
#Get rid of forbiden characters #Get rid of forbiden characters
=======
filename = "_".join(filename.split())
filename = filename.replace("__","_")
filename = filename.replace(" ","")
filename = filename.replace("\n","")
>>>>>>> 1ab02cad0d56cf6bd1aa7748ddb11ff8220f9919
filename = filename.replace("<","") filename = filename.replace("<","")
filename = filename.replace(">","") filename = filename.replace(">","")
filename = filename.replace(":","") filename = filename.replace(":","")