SuhasGholkar commited on
Commit
a8d3a7a
·
verified ·
1 Parent(s): 172e479

Update src/mis.py

Browse files
Files changed (1) hide show
  1. src/mis.py +2 -2
src/mis.py CHANGED
@@ -75,7 +75,7 @@ def _metric_card(label: str, value):
75
  # -----------------------------
76
  @st.cache_data(show_spinner="Fetching data...")
77
  def _load_mis_data(
78
- conn: sqlite3.Connection,
79
  start_str: str | None,
80
  end_str: str | None,
81
  chosen_intents: list[str],
@@ -95,7 +95,7 @@ def _load_mis_data(
95
  JOIN users u ON u.id = ch.user_id
96
  """
97
  return pd.read_sql_query(
98
- base_sql + where_sql + " ORDER BY ch.timestamp DESC", conn, params=params
99
  )
100
 
101
  # -----------------------------
 
75
  # -----------------------------
76
  @st.cache_data(show_spinner="Fetching data...")
77
  def _load_mis_data(
78
+ _conn: sqlite3.Connection,
79
  start_str: str | None,
80
  end_str: str | None,
81
  chosen_intents: list[str],
 
95
  JOIN users u ON u.id = ch.user_id
96
  """
97
  return pd.read_sql_query(
98
+ base_sql + where_sql + " ORDER BY ch.timestamp DESC", _conn, params=params
99
  )
100
 
101
  # -----------------------------