Mercurial > hg > LGServices
diff src/main/java/de/mpiwg/gazetteer/utils/DBService.java @ 21:5b1856cd6b4f
bug fixed: 1.TOC Done display issue 2.issue in firefox
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 23 Jun 2015 14:20:36 +0200 |
parents | 9c4937b290c6 |
children | 2c6f44ef34ab |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/gazetteer/utils/DBService.java Fri Jun 19 16:23:16 2015 +0200 +++ b/src/main/java/de/mpiwg/gazetteer/utils/DBService.java Tue Jun 23 14:20:36 2015 +0200 @@ -684,9 +684,10 @@ return section_version; } - public void updateTocCorrection(String bookId, Integer finishedStatus) throws SQLException { + public void updateTocCorrection(String bookId, String finishedStatus) throws SQLException { Connection conn = null; Statement stmt = null; + try { String query = "UPDATE books SET toc_correction='"+ finishedStatus + "' WHERE id='" + bookId + "'"; conn = getNewConnection(); @@ -700,7 +701,7 @@ } DBBook book = this.bookMap.get(bookId); - book.setToc_correction(finishedStatus); + book.setTocCorrection(finishedStatus); }