diff options
author | Yorhel <git@yorhel.nl> | 2013-01-05 13:30:35 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2013-01-05 13:30:35 +0100 |
commit | ba2c13150debd75c1cbf1a20950eb44ad6a30f86 (patch) | |
tree | d068b931b2c42f6dec54130cd6622c84445a87b5 /lib/VNDB/DB/VN.pm | |
parent | 68e04dade4a8bddffb13c09114f9c34867d2077b (diff) |
Don't use Multi for processing screenshots
TODO: Get rid of the 'processing' flag and all the async loading of
screenshot data in the screenshot uploader.
Diffstat (limited to 'lib/VNDB/DB/VN.pm')
-rw-r--r-- | lib/VNDB/DB/VN.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/DB/VN.pm b/lib/VNDB/DB/VN.pm index 0d14b5f4..d0015d27 100644 --- a/lib/VNDB/DB/VN.pm +++ b/lib/VNDB/DB/VN.pm @@ -235,9 +235,9 @@ sub dbVNImageId { # insert a new screenshot and return it's ID -# (no arguments required, as Multi is responsible for filling the entry with information) sub dbScreenshotAdd { - return shift->dbRow(q|INSERT INTO screenshots (processed) VALUES(false) RETURNING id|)->{id}; + my($s, $width, $height) = @_; + return $s->dbRow(q|INSERT INTO screenshots (processed, width, height) VALUES (true, ?, ?) RETURNING id|, $width, $height)->{id}; } |