@@ -81,19 +81,19 @@ class AuctionFilters(BaseModel):
8181 def query_params (self ) -> Dict [str , str ]:
8282 """The query parameters representing this filter."""
8383 params = {
84- "filter_profession" : self .vocation .value if self .vocation else None ,
84+ "filter_profession" : self .vocation .value if self .vocation is not None else None ,
8585 "filter_levelrangefrom" : self .min_level ,
8686 "filter_levelrangeto" : self .max_level ,
8787 "filter_world" : self .world ,
88- "filter_worldpvptype" : self .pvp_type .value if self .pvp_type else None ,
89- "filter_worldbattleyestate" : self .battleye .value if self .battleye else None ,
90- "filter_skillid" : self .skill .value if self .skill else None ,
88+ "filter_worldpvptype" : self .pvp_type .value if self .pvp_type is not None else None ,
89+ "filter_worldbattleyestate" : self .battleye .value if self .battleye is not None else None ,
90+ "filter_skillid" : self .skill .value if self .skill is not None else None ,
9191 "filter_skillrangefrom" : self .min_skill_level ,
9292 "filter_skillrangeto" : self .max_skill_level ,
93- "order_column" : self .order_by .value if self .order_by else None ,
94- "order_direction" : self .order .value if self .order else None ,
93+ "order_column" : self .order_by .value if self .order_by is not None else None ,
94+ "order_direction" : self .order .value if self .order is not None else None ,
9595 "searchstring" : self .search_string ,
96- "searchtype" : self .search_type .value if self .search_type else None ,
96+ "searchtype" : self .search_type .value if self .search_type is not None else None ,
9797 }
9898 return {k : v for k , v in params .items () if v is not None }
9999
0 commit comments