Skip to content

Commit

Permalink
switched name to title
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Gen authored and Lucas Gen committed Jul 6, 2022
1 parent aca562e commit e0542e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query_notion_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_pageid_for_title(title):
payload = {
"page_size": 100,
"filter": {
"property": "Name",
"property": "Title",
"rich_text": {
"equals": title
}
Expand Down Expand Up @@ -170,7 +170,7 @@ def create_page(title, author, paragraph_list):
"database_id": database_ID
},
"properties": {
"Name": {
"Title": {
"title": [
{
"type": "text",
Expand Down

0 comments on commit e0542e8

Please sign in to comment.