api: Update to use hff_notion_api_client instead of defunct notion_utils.
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user