Skip to content

Commit 79c8638

Browse files
update token
1 parent ad5c296 commit 79c8638

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/callbacks/data_callbacks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def login_callback(n_clicks, username, password, user_token, lang):
143143
)
144144
def get_cameras(user_token):
145145
logger.info("Get cameras data")
146+
if user_token is not None:
147+
api_client.token = user_token
146148
cameras = pd.DataFrame(api_client.fetch_cameras().json())
147149

148150
return cameras.to_json(orient="split")

0 commit comments

Comments
 (0)