async def findMonster2(self, query, server_filter=ServerFilter.any): query = rmdiacritics(query) nm, err, debug_info = await self._findMonster2(query, server_filter) monster_no = nm.monster_id if nm else -1 self.historic_lookups_id2[query] = monster_no json.dump(self.historic_lookups_id2, open(self.historic_lookups_file_path_id2, "w+")) m = self.get_monster_by_id(nm.monster_id) if nm else None return m, err, debug_info
def findMonster2(self, query, na_only=False): query = rmdiacritics(query) nm, err, debug_info = self._findMonster2(query, na_only) monster_no = nm.monster_id if nm else -1 self.historic_lookups_id2[query] = monster_no json.dump(self.historic_lookups_id2, open(self.historic_lookups_file_path_id2, "w+")) m = self.get_monster_by_id(nm.monster_id) if nm else None return m, err, debug_info