Skip to content

Commit

Permalink
Fix /csn cleandatabase readonly mode
Browse files Browse the repository at this point in the history
This database design is awful...
  • Loading branch information
Phoenix616 committed Oct 16, 2016
1 parent f9f9063 commit 19dedb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/wfector/command/CleanDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void run() {
Statement statement = c.createStatement();
List<String> where = new ArrayList<>();
if (readOnly) {
where.add("`Unread`='0'");
where.add("`Unread`='1'");
}
if (cleanBefore > 0) {
where.add("`Time`<" + (int) (Time.getEpochTime() - cleanBefore * 24 * 60 * 60));
Expand Down

0 comments on commit 19dedb7

Please sign in to comment.