コード例 #1
0
    def get_search_add(self):
        # Done: get text, convert to list
        # if self.search_add == '':
        #     search_list = '[]'
        # else:
        #     search_list = [self.search_add, ]

        return text_to_list(self.search_add)
コード例 #2
0
    def get_search_block(self):
        # get search_block and convert to list from text
        # Done: fix conversion from text to list
        # if self.search_block == '':
        #     search_list = '[]'
        # else:
        #     search_list = self.search_block
        # return json.loads(search_list)

        return text_to_list(self.search_block)