|
|
@@ -45,8 +45,7 @@ public class ImageController {
|
|
|
float[] binaries = new float[64];
|
|
|
service.transformBinaryArray(floats, binaries);
|
|
|
String hash = service.getReadableHash(floats);
|
|
|
- int updated =
|
|
|
- jdbcTemplate.update(
|
|
|
+ jdbcTemplate.update(
|
|
|
"INSERT INTO image_pool.image_hash VALUES (?, NOW(), ?) ON CONFLICT (hash) DO NOTHING",
|
|
|
hash,
|
|
|
binaries);
|