Spaces:
Runtime error
Runtime error
Move notion token to repo secret (#1)
Browse files- Move notion token to repo secret (1928333f8fa45d7520d9a37c6f1a5a611268d93f)
app.py
CHANGED
@@ -69,7 +69,7 @@ def logToNotion(text, top):
|
|
69 |
"Accept": "application/json",
|
70 |
"Notion-Version": "2022-02-22",
|
71 |
"Content-Type": "application/json",
|
72 |
-
"Authorization": "Bearer
|
73 |
}
|
74 |
|
75 |
response = requests.post(url, json=payload, headers=headers)
|
|
|
69 |
"Accept": "application/json",
|
70 |
"Notion-Version": "2022-02-22",
|
71 |
"Content-Type": "application/json",
|
72 |
+
"Authorization": "Bearer " + os.environ.get("NotionToken")
|
73 |
}
|
74 |
|
75 |
response = requests.post(url, json=payload, headers=headers)
|