Skip to content

Commit 1037ef8

Browse files
get stdout to work in docker
1 parent 543e279 commit 1037ef8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ millify
1010
plost
1111
plotly
1212
streamlit_option_menu
13-
pyinstrument
13+
pyinstrument>=4.0
1414
db-dtypes
1515
st-pages
1616
BeautifulSoup4

users.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import numpy as np
55
from pyinstrument import Profiler
66
import asyncio
7+
import sys
78

89
# How far back to obtain user data. Currently the queries pull back to 01/01/2021
910
start_date = "2021/01/01"
@@ -14,7 +15,6 @@
1415
# This would all be unncessery if dev had included the app user id per the spec.
1516

1617

17-
import logging
1818
import streamlit as st
1919

2020
async def get_users_list():
@@ -102,8 +102,8 @@ async def run_query(query):
102102
max_level_indices_unity = df_unity_users.groupby('user_pseudo_id')['max_user_level'].idxmax()
103103
df_unity_users = df_unity_users.loc[max_level_indices_unity].reset_index()
104104

105-
p.print(color="red")
106-
105+
106+
p.print(out=sys.stdout, flush=True, color=True)
107107
return df_cr_users, df_unity_users, df_cr_app_launch
108108

109109

0 commit comments

Comments
 (0)