Skip to content

Commit 9ecdba6

Browse files
Moved userlist out of initialize
1 parent 4b42740 commit 9ecdba6

File tree

4 files changed

+6
-25
lines changed

4 files changed

+6
-25
lines changed

.streamlit/pages.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ path = "app_pages/Unity_vs_CR.py"
99
name = "Unity vs Curious Reader Funnel"
1010
icon = ":small_orange_diamond:"
1111

12-
[[pages]]
13-
path = "app_pages/test.py"
14-
name = "Test Performance Page"
15-
icon = ":small_orange_diamond:"
1612

1713
[[pages]]
1814
path = "app_pages/CR_Funnel.py"

app_pages/Unity_vs_CR.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
import time
2-
start = time.time()
1+
32
import streamlit as st
4-
st.write("Streamlit import", time.time() - start)
5-
start = time.time()
63
from settings import initialize
7-
st.write("Settings import", time.time() - start)
8-
start = time.time()
94
from ui_components import create_funnels
10-
st.write("UI Components", time.time() - start)
11-
start = time.time()
125
import ui_widgets as ui
13-
st.write("UI Widgets", time.time() - start)
146

157
initialize()
168

@@ -52,6 +44,9 @@ def load_languages():
5244
key="acq-2",
5345
placement="middle"
5446
)
47+
48+
from users import init_user_list
49+
init_user_list()
5550

5651
# --- Date Display ---
5752
if len(daterange) == 2:

app_pages/test.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
import time
22
start = time.time()
3-
import pandas as pd
4-
import pyarrow
53
import streamlit as st
6-
import streamlit as st
7-
import settings
8-
from rich import print as rprint
9-
from millify import prettify
10-
import ui_components as uic
11-
import ui_widgets as ui
12-
import users
13-
import metrics
14-
from settings import get_logger
4+
from settings import initialize
155

166
st.write("Imports done", time.time() - start)

settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_gcp_credentials():
6161
def initialize():
6262
pd.options.mode.copy_on_write = True
6363
pd.set_option("display.max_columns", 20)
64-
users.init_user_list()
64+
6565

6666

6767
def init_cr_app_version_list():

0 commit comments

Comments
 (0)