datacipen commited on
Commit
47f6fd1
1 Parent(s): 74ce8a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -6,7 +6,6 @@ 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
8
  import dash_bootstrap_components as dbc
9
- from dash_auth import BasicAuth
10
  import plotly.express as px
11
  import plotly.graph_objects as go
12
  import dash_mantine_components as dmc
@@ -602,10 +601,7 @@ class CustomDash(Dash):
602
  renderer=kwargs['renderer'])
603
 
604
  #app = Dash(__name__, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
605
- VALID_USERNAME_PASSWORD_PAIRS = os.getenv('VALID_USERNAME_PASSWORD_PAIRS')
606
  app = CustomDash(__name__, server=server, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
607
- auth = BasicAuth(app, VALID_USERNAME_PASSWORD_PAIRS)
608
- print(auth[0])
609
 
610
  def connexion_France_Travail():
611
  client = Api(client_id=os.getenv('POLE_EMPLOI_CLIENT_ID'),
 
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
8
  import dash_bootstrap_components as dbc
 
9
  import plotly.express as px
10
  import plotly.graph_objects as go
11
  import dash_mantine_components as dmc
 
601
  renderer=kwargs['renderer'])
602
 
603
  #app = Dash(__name__, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
 
604
  app = CustomDash(__name__, server=server, external_scripts=external_scripts, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
 
 
605
 
606
  def connexion_France_Travail():
607
  client = Api(client_id=os.getenv('POLE_EMPLOI_CLIENT_ID'),