diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-29 14:14:29 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-29 14:14:29 +0000 |
commit | 44ea26659693b90e6c8573da82812115a52f9f28 (patch) | |
tree | 8119633002005292780e9c3de249fd58d49af12b /lib/VNDB/VN.pm | |
parent | 19e33929a162ddc069a1875d40d7860af46e058c (diff) |
Fixed the removal of screenshots on a reverse relation update1.22
git-svn-id: svn://vndb.org/vndb@106 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib/VNDB/VN.pm')
-rw-r--r-- | lib/VNDB/VN.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/VN.pm b/lib/VNDB/VN.pm index 544bc351..982e2e16 100644 --- a/lib/VNDB/VN.pm +++ b/lib/VNDB/VN.pm @@ -393,7 +393,7 @@ sub VNUpdReverse { # old, new, id, cid, rev } for my $i (keys %upd) { - my $r = $self->DBGetVN(id => $i, what => 'extended relations categories anime')->[0]; + my $r = $self->DBGetVN(id => $i, what => 'extended relations categories anime screenshots')->[0]; my @newrel; $_->{id} != $id && push @newrel, [ $_->{relation}, $_->{id} ] for (@{$r->{relations}}); @@ -404,6 +404,7 @@ sub VNUpdReverse { # old, new, id, cid, rev causedby => $cid, uid => 1, # Multi - hardcoded anime => [ map $_->{id}, @{$r->{anime}} ], + screenshots => [ map [ $_->{id}, $_->{nsfw}, $_->{rid} ], @{$r->{screenshots}} ], ( map { $_ => $r->{$_} } qw| title desc alias categories img_nsfw length l_wp l_encubed l_renai l_vnn image | ) ); } |