find unicode
This commit is contained in:
parent
8279a55785
commit
a33f1b18de
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ from datetime import datetime
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
import shutil
|
import shutil
|
||||||
import logging
|
import logging
|
||||||
|
import unicodedata
|
||||||
|
|
||||||
import Image
|
import Image
|
||||||
import ox
|
import ox
|
||||||
|
@ -168,7 +169,7 @@ class Item(db.Model):
|
||||||
|
|
||||||
def add(k, v):
|
def add(k, v):
|
||||||
f = Find(item_id=self.id, key=k)
|
f = Find(item_id=self.id, key=k)
|
||||||
f.findvalue = v.lower().strip()
|
f.findvalue = unicodedata.normalize('NFKD', v).lower()
|
||||||
f.value = v
|
f.value = v
|
||||||
db.session.add(f)
|
db.session.add(f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue