mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-20 05:08:12 +00:00
Add missed file
This commit is contained in:
parent
f391330f58
commit
0f3f06c19a
10
src/clj/commiteth/db/usage_metrics.clj
Normal file
10
src/clj/commiteth/db/usage_metrics.clj
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
(ns commiteth.db.usage-metrics
|
||||||
|
(:require [commiteth.db.core :refer [*db*] :as db]
|
||||||
|
[clojure.java.jdbc :as jdbc]
|
||||||
|
[clojure.tools.logging :as log]))
|
||||||
|
|
||||||
|
(defn usage-metrics-by-day
|
||||||
|
([] (usage-metrics-by-day 30))
|
||||||
|
([limit-days]
|
||||||
|
(jdbc/with-db-connection [con-db *db*]
|
||||||
|
(db/usage-metrics-by-day {:limit_days limit-days}))))
|
Loading…
x
Reference in New Issue
Block a user