From 0d3087a5e084c9c65f6122797030c9b826cbb38c Mon Sep 17 00:00:00 2001 From: Egor Dmitriev Date: Fri, 10 Dec 2021 21:19:03 +0100 Subject: [PATCH] [BUGFIX] Fixed crashes on timezones [BUGFIX] Fixed docs --- docs/zotero.md | 16 +++++++--------- .../connections/notion/structures/properties.py | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/zotero.md b/docs/zotero.md index 73bae0b..bc56284 100644 --- a/docs/zotero.md +++ b/docs/zotero.md @@ -58,16 +58,16 @@ It is possible to sync Zotero Collection tree to Notion. To do this you need to page to the following command: ```bash -notionsci sync zotero collections +notionsci sync zotero collections ``` Usage: ```bash -Usage: python -m notionsci sync zotero collections [OPTIONS] COLLECTIONS +Usage: python -m notionsci sync zotero collections [OPTIONS] TEMPLATE Starts a one way Zotero references sync to Notion - COLLECTIONS: Collections database page ID or url + TEMPLATE: Cloned template page ID or url Options: --force Ensures up to date items are also pushed to Zotero @@ -79,30 +79,28 @@ To synchronize your references (Papers, Books, Articles, etc.) you need to pass page to the following command. ```bash -notionsci sync zotero refs +notionsci sync zotero refs ``` To include the reference to collection relations you can also specify the collections database. ```bash -notionsci sync zotero refs --collections +notionsci sync zotero refs ``` Usage: ```bash -Usage: python -m notionsci sync zotero refs [OPTIONS] REFERENCES +Usage: python -m notionsci sync zotero refs [OPTIONS] TEMPLATE Starts a one way Zotero references sync to Notion - REFERENCES: References database page ID or url + TEMPLATE: Cloned template page ID or url When collecitons option is specified Unofficial Notion Api access is required Options: --force Ensures up to date items are also pushed to Zotero - -c, --collections TEXT Collections database page ID or url to (optionally) - add references to --help Show this message and exit. ``` diff --git a/notionsci/connections/notion/structures/properties.py b/notionsci/connections/notion/structures/properties.py index c100d16..ded3084 100644 --- a/notionsci/connections/notion/structures/properties.py +++ b/notionsci/connections/notion/structures/properties.py @@ -42,6 +42,7 @@ class SelectValue: class DateValue(ToMarkdownMixin): start: str end: Undefinable[str] = None + time_zone: Undefinable[str] = None @staticmethod def from_date(value: dt.datetime):