datacipen commited on
Commit
4e946a6
1 Parent(s): e9879a4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -292,6 +292,8 @@ async def on_action(action):
292
 
293
  @cl.action_callback("datavizEmploi")
294
  async def on_action(action):
 
 
295
  todayDate = datetime.datetime.today()
296
  month, year = (todayDate.month-1, todayDate.year) if todayDate.month != 1 else (12, todayDate.year-1)
297
  start_dt = todayDate.replace(day=1, month=month, year=year)
 
292
 
293
  @cl.action_callback("datavizEmploi")
294
  async def on_action(action):
295
+ client = Api(client_id=os.environ['POLE_EMPLOI_CLIENT_ID'],
296
+ client_secret=os.environ['POLE_EMPLOI_CLIENT_SECRET'])
297
  todayDate = datetime.datetime.today()
298
  month, year = (todayDate.month-1, todayDate.year) if todayDate.month != 1 else (12, todayDate.year-1)
299
  start_dt = todayDate.replace(day=1, month=month, year=year)