Skip to content

Commit

Permalink
GITC-114: Fixes structure of the save_grant_to_notion payload (#9228)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon authored Jun 30, 2021
1 parent 4ceb23e commit 77c0fe1
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions app/grants/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,33 +359,18 @@ def save_grant_to_notion(grant):
'color': 'yellow'
}
},
'URL': {
'id': 'ThRE',
'type': 'rich_text',
'rich_text': [{
'type': 'text',
'text': {
'content': grant.url,
'link': {
'url': fullUrl
}
},
'plain_text': grant.url,
'href': fullUrl
}]
},
'Grant Name': {
"id": "title",
"type": "title",
"title": [{
"type": "text",
"text": {
"content": grant.title,
"content": fullUrl,
"link": {
"url": fullUrl
}
},
"plain_text": grant.title,
"plain_text": fullUrl,
"href": fullUrl
}]
}
Expand Down

0 comments on commit 77c0fe1

Please sign in to comment.