Skip to content

Commit 52ef5a2

Browse files
committed
Fix channel-day-offset
1 parent 6e8a47b commit 52ef5a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/clojurians_log/views.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@
9797
[channel-days today offset]
9898
(as-> channel-days $
9999
(map vector (range) $)
100-
(some (fn [[index a-date]] index) $)
100+
(some (fn [[index [a-date]]]
101+
(when (= today a-date)
102+
index))
103+
$)
101104
(+ $ offset)
102105
(nth channel-days $ nil)
103106
(first $)))

0 commit comments

Comments
 (0)