summaryrefslogtreecommitdiff
path: root/src/rooms.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/rooms.clj')
-rw-r--r--src/rooms.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rooms.clj b/src/rooms.clj
index 5e1feb1..32239d2 100644
--- a/src/rooms.clj
+++ b/src/rooms.clj
@@ -35,10 +35,10 @@
(@rooms (lower-case key)))
(defn fetch-room [key]
- (first (do-select ["SELECT * FROM rooms WHERE key = LOWER(?)" key])))
+ (first (do-select ["SELECT * FROM rooms WHERE key = LOWER(?) AND active" key])))
(defn fetch-rooms []
- (do-select ["SELECT * FROM ROOMS"]))
+ (do-select ["SELECT * FROM ROOMS WHERE active"]))
(defn count-messages-by-room [room-id image-only]
(let [query (str "SELECT COUNT(*)