Skip to content

Commit

Permalink
fix bug in has_human
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Nov 8, 2023
1 parent 37c6d69 commit 780354f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiita_db/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,8 @@ def has_human(self):
with qdb.sql_connection.TRN:
qdb.sql_connection.TRN.add(sql)
for v in qdb.sql_connection.TRN.execute_fetchflatten():
if v.startswith('human-'):
# str is needed as v could be None
if str(v).startswith('human-'):
has_human = True
break

Expand Down

0 comments on commit 780354f

Please sign in to comment.