Fix error when dealing with filename collision

This commit is contained in:
Robert Miles 2019-08-17 04:49:19 +00:00
parent d3683c7028
commit a7f6451921
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def get_name_from_title(title):
n = 1
while os.path.exists(os.path.join(shipdir,t+str(n)+".txt")):
n+=1
return os.path.join(shipdir,t+str(num)+".txt")
return os.path.join(shipdir,t+str(n)+".txt")
else: return os.path.join(shipdir,t+".txt")
def write_file(filename,text):