Skip to content

Commit

Permalink
Merge pull request #10 from EgorDm/develop
Browse files Browse the repository at this point in the history
[BUGFIX] Fixed crashes on timezones
  • Loading branch information
egordm authored Dec 10, 2021
2 parents 116f5fe + 0d3087a commit 2e7a02d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docs/zotero.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <collections database url of id>
notionsci sync zotero collections <url or id of the cloned library template page>
```

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
Expand All @@ -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 <refs database url of id>
notionsci sync zotero refs <url or id of the cloned library template page>
```

To include the reference to collection relations you can also specify the collections database.

```bash
notionsci sync zotero refs <refs database url of id> --collections <collections database url of id>
notionsci sync zotero refs <url or id of the cloned library template page>
```

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.

```
Expand Down
1 change: 1 addition & 0 deletions notionsci/connections/notion/structures/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2e7a02d

Please sign in to comment.