File tree 4 files changed +12
-6
lines changed
4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 46
46
:sha " ff96d4f07d5b12b2fe0d8b206eb4a3713ad222d6" }}}
47
47
48
48
:datomic-free {:extra-paths [" profiles/datomic_on_prem" ]
49
- :extra-deps {com.datomic/datomic-free {:mvn/version " 1.0.6316 " }}}
49
+ :extra-deps {com.datomic/datomic-free {:mvn/version " 0.9.5697 " }}}
50
50
:datomic-pro {:extra-paths [" profiles/datomic_on_prem" ]
51
51
:extra-deps {com.datomic/datomic-pro {:mvn/version " 1.0.6316" }}}
52
52
:datomic-cloud {:extra-paths [" profiles/datomic_cloud" ]
Original file line number Diff line number Diff line change 74
74
; ; Remove all thread messages except for the thread parent
75
75
; ; and except for brodcast messages.
76
76
; ; Note that thread parents do not have a :thread-ts value themselves
77
- (remove #(and (:message/thread-ts %) (not (:message/thread-broadcast? %))))
77
+ (remove #(and (:message/thread-ts %)
78
+ ; ; detect self-referenctial thread heads, this happens when importing backfilled data
79
+ (not (= (:message/thread-ts %) (:message/ts %)))
80
+ (not (:message/thread-broadcast? %))))
78
81
(map #(if (:message/thread-broadcast? %)
79
82
(assoc % :message/top-level? true )
80
83
%))
Original file line number Diff line number Diff line change 201
201
202
202
(def result (load-files! (log-files )))
203
203
; ; or
204
- (def result (load-files! (files-from " 2019-01-01 " )))
204
+ (def result (load-files! (files-from " 2021-08-25 " )))
205
205
206
206
; ; see progress
207
207
(future
Original file line number Diff line number Diff line change 129
129
(when (= today a-date)
130
130
index))
131
131
$)
132
- (+ $ offset)
133
- (nth channel-days $ nil )
134
- (first $)))
132
+ (when $
133
+ (+ $ offset))
134
+ (when $
135
+ (nth channel-days $ nil ))
136
+ (when $
137
+ (first $))))
135
138
136
139
(defn- channel-list [{:data/keys [date channels] :as context}]
137
140
[:div.listings_channels
You can’t perform that action at this time.
0 commit comments