sankhyikii commited on
Commit
e9502eb
·
1 Parent(s): ab6b0b7

3 day time delay for t+2

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -5,7 +5,7 @@ import streamlit as st
5
  import plotly.graph_objects as go
6
  import time
7
  import sys
8
-
9
 
10
  with open(r"style/style.css") as css:
11
  st.markdown(f"<style>{css.read()}</style>", unsafe_allow_html=True)
@@ -69,6 +69,7 @@ for i in com_sel_name:
69
  value= pd.Timestamp('2021-01-01'),
70
  format="YYYY-MM-DD",
71
  )
 
72
  com_sel_date.append(d)
73
 
74
  com_sel = [company_dict[i] for i in com_sel_name]
 
5
  import plotly.graph_objects as go
6
  import time
7
  import sys
8
+ import datetime
9
 
10
  with open(r"style/style.css") as css:
11
  st.markdown(f"<style>{css.read()}</style>", unsafe_allow_html=True)
 
69
  value= pd.Timestamp('2021-01-01'),
70
  format="YYYY-MM-DD",
71
  )
72
+ d = d - datetime.timedelta(days=3)
73
  com_sel_date.append(d)
74
 
75
  com_sel = [company_dict[i] for i in com_sel_name]