summaryrefslogtreecommitdiff
path: root/lib/Multi/API.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-07-12 09:33:27 +0200
committerYorhel <git@yorhel.nl>2020-07-12 09:33:42 +0200
commit5508f490620eb32c4993c6b05153f85de1ebadac (patch)
tree34663b6fca019727bbf0c25608925329234b8580 /lib/Multi/API.pm
parent851be76a04a8d4a3814b4ff58e1e856e6d32482b (diff)
API: Fix JSON type of image_flagging.votecount
Should be output as an integer rather than a string. Fixes #28.
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 ab583b26..7e40e748 100644
--- a/lib/Multi/API.pm
+++ b/lib/Multi/API.pm
@@ -375,7 +375,7 @@ sub splitarray {
sub image_flagging {
my($image, $obj) = @_;
my $flag = {
- votecount => delete $obj->{c_votecount},
+ votecount => 1*delete $obj->{c_votecount},
sexual_avg => delete $obj->{c_sexual_avg},
violence_avg => delete $obj->{c_violence_avg},
};