api: Update to use hff_notion_api_client instead of defunct notion_utils.

This commit is contained in:
2024-08-12 13:18:02 -05:00
parent e90f392ef1
commit b17520946e
6 changed files with 40 additions and 33 deletions

View File

@ -1,5 +1,5 @@
import std/json, std/times
import notion_utils, timeutils
import hff_notion_api_client/utils, timeutils
type
@ -43,7 +43,7 @@ proc parseEventProposal*(n: JsonNode): EventProposal {.raises: [JsonParsingError
except:
raise newException(JsonParsingError, "Invalid EventProposal: " & getCurrentExceptionMsg())
proc asNotionPage*(ep: EventProposal): JsonNode =
proc toPage*(ep: EventProposal): JsonNode =
result = %*{
"properties": {
"Event": makeTextProp("title", ep.name),