code cleanup

This commit is contained in:
Jannik 2018-08-13 23:59:02 +02:00
parent 814bb00158
commit fe1dc01605
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ public class DBController {
LOGGER.info("like " + streamUrl); LOGGER.info("like " + streamUrl);
try { try {
Statement stmt = connection.createStatement(); Statement stmt = connection.createStatement();
stmt.executeUpdate("UPDATE films SET favorite=1 WHERE streamUrl=\"" + streamUrl + "\";"); stmt.executeUpdate("UPDATE films SET favorite = 1 WHERE streamUrl = \"" + streamUrl + "\";");
connection.commit(); connection.commit();
stmt.close(); stmt.close();
} catch (SQLException e) { } catch (SQLException e) {