def do_stuff(self, exp, reading, meaning):
     if exp != "":
         if not anki_api_interface.is_card_in_collection(exp, reading):
             anki_api_interface.add_word_card(exp, reading, meaning)
     else:
         if not anki_api_interface.is_card_in_collection(reading, reading):
             anki_api_interface.add_word_card(reading, reading, meaning)
 def hotkey5(self):
     if 4 < self.parent.search_result.get_result_count() and not anki_api_interface.is_card_in_collection(
             self.parent.search_result.get_expression_number(4), self.parent.search_result.get_reading_number(4)):
         self.do_stuff(self.parent.search_result.get_expression_number(4),
                       self.parent.search_result.get_reading_number(4),
                       self.parent.search_result.get_meaning_number(4))