summaryrefslogtreecommitdiff
path: root/lib/Multi/API.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-30 10:50:19 +0100
committerYorhel <git@yorhel.nl>2019-12-30 10:50:19 +0100
commitddb0d385eeb112de6e544adefbbac1cb0b8a957a (patch)
treec9aa318b982efac432dd0c31a6f6bcca880d9ebb /lib/Multi/API.pm
parentd79c982ee876502db2e1a12752667c6a198c2ddc (diff)
ulist/API: Fix bug with "get wishlist" reporting high prio as medium
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r--lib/Multi/API.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm
index c042d134..120c3341 100644
--- a/lib/Multi/API.pm
+++ b/lib/Multi/API.pm
@@ -1097,7 +1097,7 @@ my %GET_WISHLIST = (
proc => sub {
$_[0]{uid}*=1;
$_[0]{vn}*=1;
- $_[0]{priority} = {'Wishlist-High' => 0, 'Wishlist-Medium' => 1, 'Wishlist-Low' => 2, 'Blacklist' => 3}->{$_[0]{priority}}||1;
+ $_[0]{priority} = {'Wishlist-High' => 0, 'Wishlist-Medium' => 1, 'Wishlist-Low' => 2, 'Blacklist' => 3}->{$_[0]{priority}}//1;
$_[0]{added} = int $_[0]{added};
},
sortdef => 'vn',