diff options
author | Yorhel <git@yorhel.nl> | 2020-07-09 15:29:47 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-07-09 15:29:47 +0200 |
commit | 5da5f35ed65a769541ac41818e1e9b7911329460 (patch) | |
tree | 199a0af39bddcc7a62c9dc2aea28c2e26fc1ad1f /lib | |
parent | c6596cef2d298a7d2f2e37d2939e7a5df3abd4fc (diff) |
Multi::API: Fix confusion between vn.c_votecount and images.c_votecount
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Multi/API.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm index 6c5ef0ca..ab583b26 100644 --- a/lib/Multi/API.pm +++ b/lib/Multi/API.pm @@ -450,11 +450,11 @@ my %GET_VN = ( }, }, stats => { - select => 'v.c_popularity, v.c_rating, v.c_votecount', + select => 'v.c_popularity, v.c_rating, v.c_votecount as votecount', proc => sub { $_[0]{popularity} = 1 * sprintf '%.2f', 100*(delete $_[0]{c_popularity} or 0); $_[0]{rating} = 1 * sprintf '%.2f', 0.1*(delete $_[0]{c_rating} or 0); - $_[0]{votecount} = 1 * delete $_[0]{c_votecount}; + $_[0]{votecount} *= 1; }, }, anime => { |