Skip to content

Commit 5a308ea

Browse files
committed
!= -> ==
1 parent 69cc1fb commit 5a308ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiita_db/software.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,14 +627,14 @@ def active(self):
627627
-----
628628
This method differentiates between commands based on analysis_only or
629629
the software type. The commands that are not for analysis (processing)
630-
and are not from an artifact definition software will return as active
630+
and are from an artifact definition software will return as active
631631
if they have the same name than a command that is active; this helps
632632
for situations where the processing plugins are updated but some
633633
commands didn't change its version.
634634
"""
635635
with qdb.sql_connection.TRN:
636636
cmd_type = self.software.type
637-
if self.analysis_only or cmd_type != 'artifact definition':
637+
if self.analysis_only or cmd_type == 'artifact definition':
638638
sql = """SELECT active
639639
FROM qiita.software_command
640640
WHERE command_id = %s"""

0 commit comments

Comments
 (0)