File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ millify
10
10
plost
11
11
plotly
12
12
streamlit_option_menu
13
- pyinstrument
13
+ pyinstrument >= 4.0
14
14
db-dtypes
15
15
st-pages
16
16
BeautifulSoup4
Original file line number Diff line number Diff line change 4
4
import numpy as np
5
5
from pyinstrument import Profiler
6
6
import asyncio
7
+ import sys
7
8
8
9
# How far back to obtain user data. Currently the queries pull back to 01/01/2021
9
10
start_date = "2021/01/01"
14
15
# This would all be unncessery if dev had included the app user id per the spec.
15
16
16
17
17
- import logging
18
18
import streamlit as st
19
19
20
20
async def get_users_list ():
@@ -102,8 +102,8 @@ async def run_query(query):
102
102
max_level_indices_unity = df_unity_users .groupby ('user_pseudo_id' )['max_user_level' ].idxmax ()
103
103
df_unity_users = df_unity_users .loc [max_level_indices_unity ].reset_index ()
104
104
105
- p . print ( color = "red" )
106
-
105
+
106
+ p . print ( out = sys . stdout , flush = True , color = True )
107
107
return df_cr_users , df_unity_users , df_cr_app_launch
108
108
109
109
You can’t perform that action at this time.
0 commit comments