diff --git a/utils.py b/utils.py index 282dcb9..768105d 100644 --- a/utils.py +++ b/utils.py @@ -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):