don't overwrite first
This commit is contained in:
parent
ca3909abed
commit
b4f42256d8
1 changed files with 0 additions and 1 deletions
|
@ -785,7 +785,6 @@ class File(db.Model):
|
|||
while utils.iexists(os.path.join(prefix, new_path)):
|
||||
h = self.sha1[:len(h)+1]
|
||||
filename = '%s.%s.%s' % (title, h, extension)
|
||||
first = unicodedata.normalize('NFD', author[0].upper())[0].upper()
|
||||
new_path = os.path.join(first, author, filename)
|
||||
if current_path == os.path.join(prefix, new_path):
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue