File size: 299 Bytes
21d674f |
1 2 3 4 5 6 7 8 9 10 11 |
from datetime import datetime, timedelta
import streamlit as st
@st.cache_data
def find_default_publish_start_end_date():
today = datetime.now()
start = today - timedelta(days=today.weekday())
end = start + timedelta(days=6)
if end > today:
end = today
return start, end |