qatool / common.py
naotakigawa's picture
Update common.py
d721b27
raw
history blame
408 Bytes
# common.py
import extra_streamlit_components as stx
import streamlit as st
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("__name__")
logger.debug("調査用ログ")
#ログインの確認
def check_login():
value = stx.CookieManager().get_all()
logger.info(value)
if value is None:
st.warning("**ログインしてください**")
st.stop()