From 5a1b00e6e6b2c1963a3912b322759e9cc36fcfed Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Thu, 3 Mar 2016 21:46:46 +0100 Subject: [PATCH] --amend --- scan_util.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scan_util.lua b/scan_util.lua index 64e6da3..c0c7dd6 100644 --- a/scan_util.lua +++ b/scan_util.lua @@ -6,15 +6,15 @@ m.filters = { ['LEFT'] = { arity = 1, test = function(duration) - local max_index = ({ + local code = ({ ['30M'] = 1, ['2H'] = 2, ['8H'] = 3, ['24H'] = 4 - })[strlower(duration or '')] - if max_index then + })[duration or ''] + if code then return function(auction_record) - return auction_record.duration <= max_index + return auction_record.duration == code end else return false, 'Erroneous Time Left Modifier'