admehta01 commited on
Commit
a6f2a71
·
1 Parent(s): ca5403a

Move notion token to repo secret (#1)

Browse files

- Move notion token to repo secret (1928333f8fa45d7520d9a37c6f1a5a611268d93f)

Files changed (1) hide show
  1. app.py +1 -1
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 secret_lc3Weq9s87EnkNWk2Yibko91hhLuNQIEzSoeAAoriUz"
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)