make species stats up to 70% faster

This commit is contained in:
ehpersonal38
2023-05-19 19:46:15 -04:00
parent 0e40aa562a
commit f25d43d133
+2 -1
View File
@@ -45,7 +45,8 @@ def get_connection(path: str):
return sqlite3.connect(path, check_same_thread=False)
def get_data(conn: Connection):
@st.cache_resource()
def get_data(_conn: Connection):
df1 = pd.read_sql("SELECT * FROM detections", con=conn)
return df1