Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,16 @@ base_id = os.environ.get('AIRTABLE_BASE_ID')
|
|
8 |
users_table_name = 'tblLNe5ZL47SvrAEk'
|
9 |
user_log_table_name = 'tblrlTsRrkl6BqMAJ'
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
def log_login(username):
|
12 |
|
13 |
airtable_endpoint = f'https://api.airtable.com/v0/{base_id}/{user_log_table_name}'
|
|
|
8 |
users_table_name = 'tblLNe5ZL47SvrAEk'
|
9 |
user_log_table_name = 'tblrlTsRrkl6BqMAJ'
|
10 |
|
11 |
+
#App name for user login logging
|
12 |
+
app="NILI"
|
13 |
+
|
14 |
+
#Header for the Airtable requests
|
15 |
+
headers = {
|
16 |
+
"Authorization": f"Bearer {airtable_api_key}",
|
17 |
+
"Content-Type": "application/json",
|
18 |
+
"Accept": "application/json",
|
19 |
+
}
|
20 |
+
|
21 |
def log_login(username):
|
22 |
|
23 |
airtable_endpoint = f'https://api.airtable.com/v0/{base_id}/{user_log_table_name}'
|