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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -38,6 +38,9 @@ def logToNotion(text, top):
38
  url = "https://api.notion.com/v1/pages"
39
 
40
  payload = {
 
 
 
41
  "properties": {
42
  "title": {
43
  "title": [{
@@ -60,8 +63,7 @@ def logToNotion(text, top):
60
  }
61
  }]
62
  }
63
- },
64
- "parent": "4a220773ac694851811e87f4571ec41d"
65
  }
66
  headers = {
67
  "Accept": "application/json",
 
38
  url = "https://api.notion.com/v1/pages"
39
 
40
  payload = {
41
+ "parent": {
42
+ "database_id": "4a220773ac694851811e87f4571ec41d"
43
+ },
44
  "properties": {
45
  "title": {
46
  "title": [{
 
63
  }
64
  }]
65
  }
66
+ }
 
67
  }
68
  headers = {
69
  "Accept": "application/json",