qatool / common.py
naotakigawa's picture
Upload 4 files
178b25e
raw
history blame
406 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(cookie='some_cookie_name')
if value is None:
st.warning("**ログインしてください**")
st.stop()