Skip to content

Commit

Permalink
Merge pull request #492 from Sidekick-Poe/bugfix/ilvl-clean-filter
Browse files Browse the repository at this point in the history
Clean the left-over code for the item level filter
  • Loading branch information
leMicin authored Jan 21, 2025
2 parents 2751cba + 6e5a677 commit f6e665c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Sidekick.Apis.Poe/Trade/TradeSearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,6 @@ public async Task<TradeSearchResult<string>> Search(Item item, PropertyFilters?
propertyParser.PrepareTradeRequest(query.Filters, item, propertyFilters);
}

// The item level filter for Path of Exile 2 is inside the type filters instead of the misc filters.
if (item.Header.Game == GameType.PathOfExile2)
{
query.Filters.TypeFilters.Filters.ItemLevel = query.Filters.MiscFilters?.Filters.ItemLevel;
if (query.Filters.MiscFilters != null)
{
query.Filters.MiscFilters.Filters.ItemLevel = null;
}
}

var leagueId = await settingsService.GetString(SettingKeys.LeagueId);
var uri = new Uri($"{await GetBaseApiUrl(metadata.Game)}search/{leagueId.GetUrlSlugForLeague()}");

Expand Down

0 comments on commit f6e665c

Please sign in to comment.