Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,9 @@ base_id = 'appcUK3hUWC7GM2Kb'
|
|
33 |
#Name of the prompt temlate record
|
34 |
prompt_name = "NILI_v1"
|
35 |
|
|
|
|
|
|
|
36 |
#Header for the Airtable requests
|
37 |
headers = {
|
38 |
"Authorization": f"Bearer {airtable_api_key}",
|
@@ -288,6 +291,7 @@ def log_login(username):
|
|
288 |
# Organize data for Airtable
|
289 |
new_fields = {
|
290 |
'user_name': str(username),
|
|
|
291 |
}
|
292 |
|
293 |
data = {
|
|
|
33 |
#Name of the prompt temlate record
|
34 |
prompt_name = "NILI_v1"
|
35 |
|
36 |
+
#App name for user login logging
|
37 |
+
app="NILI"
|
38 |
+
|
39 |
#Header for the Airtable requests
|
40 |
headers = {
|
41 |
"Authorization": f"Bearer {airtable_api_key}",
|
|
|
291 |
# Organize data for Airtable
|
292 |
new_fields = {
|
293 |
'user_name': str(username),
|
294 |
+
'app': str(app)
|
295 |
}
|
296 |
|
297 |
data = {
|