corrections on comments and accents striping in all recipe backends
This commit is contained in:
parent
b6c17ed90c
commit
8ec69cdcd2
6 changed files with 36 additions and 26 deletions
|
|
@ -48,7 +48,7 @@ class CuisineazBackend(BaseBackend, ICapRecipe):
|
|||
def iter_recipes(self, pattern):
|
||||
# the search form does that so the url is clean of special chars
|
||||
# we go directly on search results by the url so we strip it too
|
||||
return self.browser.iter_recipes(strip_accents(pattern).encode('utf-8'))
|
||||
return self.browser.iter_recipes(strip_accents(unicode(pattern)).encode('utf-8'))
|
||||
|
||||
def fill_recipe(self, recipe, fields):
|
||||
if 'nb_person' in fields or 'instructions' in fields:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue