Spaces:
Runtime error
Runtime error
Merge pull request #71 from VioletWizard-lim/claude/remove-teacher-comments-Wy5SV
Browse files
components/teacher_dashboard.py
CHANGED
|
@@ -161,6 +161,25 @@ def _render_oc_section(supabase, room_name, act_type, current_topic, df_all):
|
|
| 161 |
st.info("아직 제출된 결론이 없습니다.")
|
| 162 |
|
| 163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
def render_teacher_dashboard(supabase, room_name, user_role, student_name, current_topic, current_mode, act_type):
|
| 165 |
st.divider()
|
| 166 |
col_dash_title, col_dash_refresh = st.columns([8, 2])
|
|
@@ -170,6 +189,8 @@ def render_teacher_dashboard(supabase, room_name, user_role, student_name, curre
|
|
| 170 |
if st.button("🔄 대시보드 수동 새로고침", use_container_width=True):
|
| 171 |
st.rerun()
|
| 172 |
|
|
|
|
|
|
|
| 173 |
df_all = with_fallback_author_role(fetch_live_messages(supabase, room_name, DASHBOARD_FETCH_LIMIT))
|
| 174 |
student_only_df = (
|
| 175 |
df_all[
|
|
|
|
| 161 |
st.info("아직 제출된 결론이 없습니다.")
|
| 162 |
|
| 163 |
|
| 164 |
+
def _render_ip_debug():
|
| 165 |
+
"""임시 IP/헤더 디버그 패널 (확인 후 삭제 예정)."""
|
| 166 |
+
import streamlit as _st
|
| 167 |
+
with _st.expander("🔧 IP 디버그 (임시)", expanded=False):
|
| 168 |
+
_st.write(f"Streamlit 버전: `{_st.__version__}`")
|
| 169 |
+
try:
|
| 170 |
+
headers = _st.context.headers
|
| 171 |
+
_st.write(f"헤더 수신 여부: `{bool(headers)}`")
|
| 172 |
+
if headers:
|
| 173 |
+
_st.write("수신된 헤더 목록:")
|
| 174 |
+
_st.json({k: v for k, v in headers.items()})
|
| 175 |
+
except Exception as e:
|
| 176 |
+
_st.error(f"st.context.headers 오류: {e}")
|
| 177 |
+
|
| 178 |
+
from utils import get_client_ip
|
| 179 |
+
detected_ip = get_client_ip()
|
| 180 |
+
_st.write(f"감지된 IP: `{detected_ip or '(없음)'}`")
|
| 181 |
+
|
| 182 |
+
|
| 183 |
def render_teacher_dashboard(supabase, room_name, user_role, student_name, current_topic, current_mode, act_type):
|
| 184 |
st.divider()
|
| 185 |
col_dash_title, col_dash_refresh = st.columns([8, 2])
|
|
|
|
| 189 |
if st.button("🔄 대시보드 수동 새로고침", use_container_width=True):
|
| 190 |
st.rerun()
|
| 191 |
|
| 192 |
+
_render_ip_debug()
|
| 193 |
+
|
| 194 |
df_all = with_fallback_author_role(fetch_live_messages(supabase, room_name, DASHBOARD_FETCH_LIMIT))
|
| 195 |
student_only_df = (
|
| 196 |
df_all[
|