forked from 0x2620/pandora
fix upload
This commit is contained in:
parent
c5fcb813e9
commit
76960b4020
1 changed files with 1 additions and 1 deletions
|
@ -886,7 +886,7 @@ class Item(models.Model):
|
||||||
#sort keys based on database, these will always be available
|
#sort keys based on database, these will always be available
|
||||||
s.public_id = self.public_id.replace('0x', 'xx')
|
s.public_id = self.public_id.replace('0x', 'xx')
|
||||||
s.oxdbId = self.oxdbId
|
s.oxdbId = self.oxdbId
|
||||||
if not settings.USE_IMDB:
|
if not settings.USE_IMDB and s.public_id.isupper() and s.public_id.isalpha():
|
||||||
s.public_id = ox.sort_string(str(ox.fromAZ(s.public_id)))
|
s.public_id = ox.sort_string(str(ox.fromAZ(s.public_id)))
|
||||||
s.modified = self.modified or datetime.now()
|
s.modified = self.modified or datetime.now()
|
||||||
s.created = self.created or datetime.now()
|
s.created = self.created or datetime.now()
|
||||||
|
|
Loading…
Reference in a new issue