From e722482be514f0e970bb3efa5063fafca2eff3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen?= Date: Mon, 22 Dec 2025 04:36:35 +0100 Subject: [PATCH] stores auction data that has been scanned up to the point of interruption --- TradeSkillMaster/Auction/AuctionScanning.lua | 2 +- TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua | 2 +- TradeSkillMaster_AuctionDB/Modules/Scanning.lua | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TradeSkillMaster/Auction/AuctionScanning.lua b/TradeSkillMaster/Auction/AuctionScanning.lua index 39cbec7..c32a040 100644 --- a/TradeSkillMaster/Auction/AuctionScanning.lua +++ b/TradeSkillMaster/Auction/AuctionScanning.lua @@ -34,7 +34,7 @@ local function eventHandler(event) -- auction house was closed, make sure all scanning is stopped AuctionScanning:UnregisterEvent("AUCTION_ITEM_LIST_UPDATE") private.auctionHouseShown = false - DoCallback("INTERRUPTED") + DoCallback("INTERRUPTED", private.data) private:StopScanning() elseif event == "AUCTION_ITEM_LIST_UPDATE" then -- gets called whenever the AH window is updated (something is shown in the results section) diff --git a/TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua b/TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua index 2d1dd8c..37fd8bd 100644 --- a/TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua +++ b/TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua @@ -522,7 +522,7 @@ do if interrupted then -- fires if the scan was interrupted - DoCallback("SCAN_INTERRUPTED") + DoCallback("SCAN_INTERRUPTED", status.data) else -- fires if the scan completed sucessfully DoCallback("SCAN_COMPLETE", status.data) diff --git a/TradeSkillMaster_AuctionDB/Modules/Scanning.lua b/TradeSkillMaster_AuctionDB/Modules/Scanning.lua index b87f42e..9913da9 100644 --- a/TradeSkillMaster_AuctionDB/Modules/Scanning.lua +++ b/TradeSkillMaster_AuctionDB/Modules/Scanning.lua @@ -161,6 +161,8 @@ local function FullScanCallback(event, ...) -- NOTE: "SCAN_INTERRUPTED" is from LibAuctionScan-1.0, which isn't used -- by TSM anymore, and "INTERRUPTED" is from "TSM/Auction/AuctionScanning.lua", -- which is what this scanner uses nowadays. + local data = ... + Scan:ProcessScanData(data) Scan:DoneScanning() end end