avoid loop in get_sort_name
This commit is contained in:
parent
62c0c9337f
commit
27943bf1a5
4 changed files with 25 additions and 21 deletions
|
|
@ -207,7 +207,7 @@ class Item(db.Model):
|
|||
else:
|
||||
f.sortvalue = f.value
|
||||
if f.sortvalue:
|
||||
f.sortvalue = unicodedata.normalize('NFKD', f.sortvalue).lower()
|
||||
f.sortvalue = ox.sort_string(unicodedata.normalize('NFKD', f.sortvalue)).lower()
|
||||
else:
|
||||
f.sortvalue = None
|
||||
state.db.session.add(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue