drop python2 support, upgrade to django 3
This commit is contained in:
parent
80390a1f9b
commit
844382b1e8
124 changed files with 413 additions and 563 deletions
|
|
@ -55,14 +55,14 @@ def plural_key(term):
|
|||
|
||||
def sort_title(title):
|
||||
|
||||
title = title.replace(u'Æ', 'Ae')
|
||||
title = title.replace('Æ', 'Ae')
|
||||
if isinstance(title, bytes):
|
||||
title = title.decode('utf-8')
|
||||
title = ox.decode_html(title)
|
||||
title = sort_string(title)
|
||||
|
||||
#title
|
||||
title = re.sub(u'[\'!¿¡,\.;\-"\:\*\[\]]', '', title)
|
||||
title = re.sub('[\'!¿¡,\.;\-"\:\*\[\]]', '', title)
|
||||
return title.strip()
|
||||
|
||||
def get_positions(ids, pos, decode_id=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue