masa729406 commited on
Commit
80b056c
ยท
1 Parent(s): 4fe001a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -199,13 +199,13 @@ linear_regression = LinearRegression()
199
  model = linear_regression.fit(X,y)
200
 
201
  d_today = datetime.date.today()
202
- d_tom = datetime.date.today() + datetime.timedelta(days = 1)
203
- d_y = datetime.date.today() + datetime.timedelta(days = -1)
204
 
205
  # ๅ‰ๆ—ฅใฎใ‚ใ˜ใƒ‡ใƒผใ‚ฟๆŠฝๅ‡บ
206
  if __name__ == "__main__":
207
  start_date = d_y
208
- end_date = d_today
209
  df_aji_pre = get_fish_price_data(start_date=start_date, end_date=end_date)
210
  df_aji_pre['date'] = df_aji_pre['date'].astype(int)
211
 
 
199
  model = linear_regression.fit(X,y)
200
 
201
  d_today = datetime.date.today()
202
+ d_tom = datetime.date.today() + datetime.timedelta(days = -1)
203
+ d_y = datetime.date.today() + datetime.timedelta(days = -2)
204
 
205
  # ๅ‰ๆ—ฅใฎใ‚ใ˜ใƒ‡ใƒผใ‚ฟๆŠฝๅ‡บ
206
  if __name__ == "__main__":
207
  start_date = d_y
208
+ end_date = d_tom
209
  df_aji_pre = get_fish_price_data(start_date=start_date, end_date=end_date)
210
  df_aji_pre['date'] = df_aji_pre['date'].astype(int)
211