admehta01 commited on
Commit
1928333
1 Parent(s): d763fab

Move notion token to repo secret

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def logToNotion(text, top):
67
  "Accept": "application/json",
68
  "Notion-Version": "2022-02-22",
69
  "Content-Type": "application/json",
70
- "Authorization": "Bearer secret_lc3Weq9s87EnkNWk2Yibko91hhLuNQIEzSoeAAoriUz"
71
  }
72
 
73
  response = requests.post(url, json=payload, headers=headers)
 
67
  "Accept": "application/json",
68
  "Notion-Version": "2022-02-22",
69
  "Content-Type": "application/json",
70
+ "Authorization": "Bearer " + os.environ.get("NotionToken")
71
  }
72
 
73
  response = requests.post(url, json=payload, headers=headers)