Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Jun 25, 2024
1 parent 4e6db8d commit f876b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lingvodoc/utils/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def f(tag):
if id and state:
word_dict['id'] = id
word_dict['state'] = state
if type(word_dict['state']) == list:
if type(word_dict['state']) is list:
word_dict['state'] = ' '.join(word_dict['state'])
word_dict['results'] = []
item_to_store = word_dict
Expand All @@ -629,7 +629,7 @@ def f(tag):
res = json.loads(ann.text)
res['id'] = ann.get('id')
res['state'] = ann.get('class')
if type(res['state'] == list):
if type(res['state'] is list):
res['state'] = ' '.join(res['state'])
word_dict['results'].append(res)

Expand Down

0 comments on commit f876b39

Please sign in to comment.