Skip to content

Commit

Permalink
unified datetime import style and fixed some import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Nov 4, 2024
1 parent 7d8e128 commit d730beb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wim.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
import random
from datetime import datetime, timedelta

import streamlit as st
import streamlit_authenticator as stauth
Expand Down Expand Up @@ -68,9 +68,9 @@
if nav == "invullen":
st.header("")

default_start = today - timedelta(days=today.weekday()) # Monday
default_end = default_start + timedelta(days=4) # Friday
refresh_value = timedelta(days=7)
default_start = today - datetime.timedelta(days=today.weekday()) # Monday
default_end = default_start + datetime.timedelta(days=4) # Friday
refresh_value = datetime.timedelta(days=7)

date_range_string = date_range_picker(
picker_type=PickerType.week,
Expand Down Expand Up @@ -145,8 +145,6 @@
"wessel",
]

import datetime

with tab1:
current_week_number = datetime.datetime.now().isocalendar()[1]

Expand Down

0 comments on commit d730beb

Please sign in to comment.