77from tibiawikisql .models .quest import ItemReward , Quest , QuestCreature , QuestDanger , QuestReward
88from tibiawikisql .parsers .base import AttributeParser
99from tibiawikisql .parsers import BaseParser
10- import tibiawikisql .schema
10+ from tibiawikisql .schema import QuestTable
1111from tibiawikisql .utils import clean_links , parse_boolean , parse_integer
1212
1313link_pattern = re .compile (r"\[\[([^|\]]+)" )
1414
1515
16- def parse_links (value ) :
16+ def parse_links (value : str ) -> list [ str ] :
1717 """Find all the links in a string and returns a list of them.
1818
19- Parameters
20- ----------
21- value: :class:`str`
22- A string containing links.
19+ Args:
20+ value: A string containing links.
2321
24- Returns
25- -------
26- list(:class:`str`):
22+ Returns:
2723 The links found in the string.
2824
2925 """
@@ -34,12 +30,12 @@ class QuestParser(BaseParser):
3430 """Parser for quests."""
3531
3632 model = Quest
37- table = tibiawikisql . schema . QuestTable
33+ table = QuestTable
3834 template_name = "Infobox_Quest"
3935 attribute_map : ClassVar = {
4036 "name" : AttributeParser .required ("name" , html .unescape ),
4137 "location" : AttributeParser .optional ("location" , clean_links ),
42- "rookgaard " : AttributeParser .optional ("rookgaardquest" , parse_boolean , False ),
38+ "is_rookgaard_quest " : AttributeParser .optional ("rookgaardquest" , parse_boolean , False ),
4339 "type" : AttributeParser .optional ("type" ),
4440 "quest_log" : AttributeParser .optional ("log" , parse_boolean ),
4541 "legend" : AttributeParser .optional ("legend" , clean_links ),
0 commit comments