Increase message file length count
This commit is contained in:
parent
ab1677893b
commit
61b0b8ed9a
2
utils.py
2
utils.py
|
@ -28,7 +28,7 @@ def getshipdir():
|
||||||
def get_name_from_title(title):
|
def get_name_from_title(title):
|
||||||
shipdir = getshipdir()
|
shipdir = getshipdir()
|
||||||
t = NOT_ALPHANUM.sub("-",title)
|
t = NOT_ALPHANUM.sub("-",title)
|
||||||
t = t[:10]
|
t = t[:20]
|
||||||
if os.path.exists(os.path.join(shipdir,t+".txt")):
|
if os.path.exists(os.path.join(shipdir,t+".txt")):
|
||||||
n = 1
|
n = 1
|
||||||
while os.path.exists(os.path.join(shipdir,t+str(n)+".txt")):
|
while os.path.exists(os.path.join(shipdir,t+str(n)+".txt")):
|
||||||
|
|
Loading…
Reference in New Issue