Jon Solow
commited on
Commit
·
534f8af
1
Parent(s):
9a3b9f2
Set override cache to 10 min
Browse files- src/login.py +2 -2
src/login.py
CHANGED
@@ -7,7 +7,7 @@ from streamlit_gsheets import GSheetsConnection
|
|
7 |
from streamlit.runtime.secrets import AttrDict, secrets_singleton
|
8 |
from data_storage import get_user_id_if_email_exists, get_user, add_new_user, create_new_token_for_user
|
9 |
|
10 |
-
NEW_USER_ENABLED = bool(int(
|
11 |
|
12 |
|
13 |
class HFFriendlyGSheetsConnection(GSheetsConnection):
|
@@ -155,7 +155,7 @@ def get_logged_in_user_name_email() -> tuple[str | None, str | None]:
|
|
155 |
|
156 |
|
157 |
# hack - data overrides for stats allowing for quick manual edits
|
158 |
-
@st.cache_data(ttl=60 *
|
159 |
def get_stat_overrides() -> dict[int, dict[str, dict[str, float]]]:
|
160 |
df = conn.read(
|
161 |
worksheet="stats-overrides",
|
|
|
7 |
from streamlit.runtime.secrets import AttrDict, secrets_singleton
|
8 |
from data_storage import get_user_id_if_email_exists, get_user, add_new_user, create_new_token_for_user
|
9 |
|
10 |
+
NEW_USER_ENABLED = bool(int(w("NEW_USER_ENABLED", 1)))
|
11 |
|
12 |
|
13 |
class HFFriendlyGSheetsConnection(GSheetsConnection):
|
|
|
155 |
|
156 |
|
157 |
# hack - data overrides for stats allowing for quick manual edits
|
158 |
+
@st.cache_data(ttl=60 * 10)
|
159 |
def get_stat_overrides() -> dict[int, dict[str, dict[str, float]]]:
|
160 |
df = conn.read(
|
161 |
worksheet="stats-overrides",
|