From 5ae3a76a0be5ebf4a7a2965aa2f108cee7bbb44e Mon Sep 17 00:00:00 2001 From: gretchen Date: Sun, 21 Jan 2024 11:22:09 +0100 Subject: [PATCH] hopefully fix last issues with pages --- core/scan.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/scan.lua b/core/scan.lua index 5f76245..1d624d9 100644 --- a/core/scan.lua +++ b/core/scan.lua @@ -146,7 +146,9 @@ function scan_page(i) auction_info.page = get_state().page auction_info.blizzard_query = get_query().blizzard_query auction_info.query_type = get_state().params.type - pages = last_page(get_state().total_auctions) + if get_query().blizzard_query and get_state().page then + pages = last_page(get_state().total_auctions) + end history.process_auction(auction_info, pages)