 ;(println "Done count: " (query session find-done-count))
 
 
-;(cljs.pprint/pprint (entity session (:db/id (first (clara-tups->maps all-done)))))
-
-;(cljs.pprint/pprint (find-by-attribute session :ui/visibility-filter))
+(cljs.pprint/pprint (entity session (:db/id (first (clara-tups->maps all-done)))))
+(cljs.pprint/pprint  all-done)
+
+(cljs.pprint/pprint (find-by-attribute session :ui/visibility-filter))
 
 (defn entities-where
   "Returns hydrated entities matching an attribute-only or an attribute-value query"

  ([session a v e] (map #(entity session (:db/id %)) (qave session a v e))))

;(cljs.pprint/pprint (map #(entity session (:db/id %)) (qav session :todo/done :done)))
;(cljs.pprint/pprint (entities-where session :todo/visible :tag))

  [:ui/visibility-filter [[e a v]] (= v :done)]
  [:todo/done [[e a v]] (= e ?e)]
  =>
  (insert! [?e :todo/visible :tag]))

(defrule todo-is-visible-when-a-friday
  [:exists [:today/is-friday]]
  [:todo/title [[e a v]] (= ?e e)]
  =>
  (println "BOOM")
  (insert! [?e :todo/visible :tag]))

;(defrule show-active
