Spaces:
Build error
Build error
Update utils/analytics.py
Browse files- utils/analytics.py +8 -0
utils/analytics.py
CHANGED
|
@@ -1,4 +1,12 @@
|
|
| 1 |
# utils/analytics.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def get_collection_analytics(conn: sqlite3.Connection) -> Dict:
|
| 4 |
"""Get analytics for collections and documents."""
|
|
|
|
| 1 |
# utils/analytics.py
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import pandas as pd
|
| 4 |
+
import sqlite3
|
| 5 |
+
from typing import Dict, List
|
| 6 |
+
from datetime import datetime, timedelta
|
| 7 |
+
import plotly.express as px
|
| 8 |
+
import plotly.graph_objects as go
|
| 9 |
+
from utils.database import conn_lock
|
| 10 |
|
| 11 |
def get_collection_analytics(conn: sqlite3.Connection) -> Dict:
|
| 12 |
"""Get analytics for collections and documents."""
|