You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
THE ISSUE:
In short, my python script won't allow any update in an already existing event through Notion. The "Part 2" of the script doesn't work.
DETAILS OF THE ISSUE:
Whenever I try to update an event on Notion the "result_list" variable (just after the attribution of the variable "my_page") it returns an empty list, so it isn't running both "if" blocks from the part 2:
if len(resultList) > 0:
for i, el in enumerate(resultList):
pageId = el['id']
my_page = notion.pages.update( ##### This checks off that the event has been put on Google Calendar
**{
"page_id": pageId,
"properties": {
Calendar_Notion_Name: {
'select': {
"name": DEFAULT_CALENDAR_NAME
},
},
LastUpdatedTime_Notion_Name: {
"date":{
'start': notion_time(),
'end': None,
}
},
},
},
)
WHAT HAS BEEN OBSERVED:
I had "printed" the "result_list" variable and it was observed as an empty list.
I suspect that the "result_list" variable its been pulled from the wrong place.
When updating the data from an already existing entry (both entries on Google Calendar and Notion) directly from Notion (eg. changing the date from 24/04 to 22/04) the code prioritizes the data of Google Calendar overwriting the data of Notion to the Google Calendar data (eg. returning to day 24/04 on Notion).
The text was updated successfully, but these errors were encountered:
THE ISSUE:
In short, my python script won't allow any update in an already existing event through Notion. The "Part 2" of the script doesn't work.
DETAILS OF THE ISSUE:
Whenever I try to update an event on Notion the "result_list" variable (just after the attribution of the variable "my_page") it returns an empty list, so it isn't running both "if" blocks from the part 2:
WHAT HAS BEEN OBSERVED:
The text was updated successfully, but these errors were encountered: