Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
import datetime
|
3 |
import requests
|
4 |
import textwrap
|
5 |
-
import functools32
|
6 |
from offres_emploi import Api
|
7 |
from offres_emploi.utils import dt_to_str_iso
|
8 |
from dash import Dash, html, dcc, callback, Output, Input, dash_table, State, _dash_renderer, clientside_callback
|
@@ -605,13 +604,12 @@ class CustomDash(Dash):
|
|
605 |
|
606 |
#app = Dash(__name__, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
|
607 |
app = CustomDash(__name__, server=server, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
|
608 |
-
|
609 |
def connexion_France_Travail():
|
610 |
client = Api(client_id=os.getenv('POLE_EMPLOI_CLIENT_ID'),
|
611 |
client_secret=os.getenv('POLE_EMPLOI_CLIENT_SECRET'))
|
612 |
return client
|
613 |
|
614 |
-
@functools32.lru_cache(maxsize=32)
|
615 |
def API_France_Travail(romeListArray):
|
616 |
client = connexion_France_Travail()
|
617 |
todayDate = datetime.datetime.today()
|
|
|
2 |
import datetime
|
3 |
import requests
|
4 |
import textwrap
|
|
|
5 |
from offres_emploi import Api
|
6 |
from offres_emploi.utils import dt_to_str_iso
|
7 |
from dash import Dash, html, dcc, callback, Output, Input, dash_table, State, _dash_renderer, clientside_callback
|
|
|
604 |
|
605 |
#app = Dash(__name__, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
|
606 |
app = CustomDash(__name__, server=server, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
|
607 |
+
|
608 |
def connexion_France_Travail():
|
609 |
client = Api(client_id=os.getenv('POLE_EMPLOI_CLIENT_ID'),
|
610 |
client_secret=os.getenv('POLE_EMPLOI_CLIENT_SECRET'))
|
611 |
return client
|
612 |
|
|
|
613 |
def API_France_Travail(romeListArray):
|
614 |
client = connexion_France_Travail()
|
615 |
todayDate = datetime.datetime.today()
|