Commits

Tetsuya Morimoto committed d73c302

fixed to pass pep8 test

  • Participants
  • Parent commits bd91668

Comments (0)

Files changed (1)

File ticketref/model.py

             row = c.fetchone()
             if row:
                 target_refs = cnv_text2list(row[0])
-                if not ref_id in target_refs:
+                if ref_id not in target_refs:
                     target_refs.add(ref_id)
                     new_text = cnv_list2text(target_refs)
                     c.execute(UPDATE_TICKETREF, (new_text, self.ticket.id))
             row = c.fetchone()
             if row:
                 target_refs = cnv_text2list(row[0])
-                if not self.ticket.id in target_refs:
+                if self.ticket.id not in target_refs:
                     target_refs.add(self.ticket.id)
                     new_text = cnv_list2text(target_refs)
                     c.execute(UPDATE_TICKETREF, (new_text, ref_id))