Skip to content

Commit

Permalink
HOTFIX : fixed set_number method - 0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
minwook-shin committed Mar 1, 2023
1 parent 46f1cb4 commit 3297373
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2022-06-28.6 (2023-03-01)

### Bug Fixes

* HOTFIX : fixed set_number method
* https://github.com/minwook-shin/notion-database/issues/12

## 2022-06-28.5 (2023-02-22)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="notion-database",
version=NOTION_VERSION.replace("-", "") + ".5",
version=NOTION_VERSION.replace("-", "") + ".6",
author="minwook-shin",
author_email="minwook0106@gmail.com",
description=" Notion API Database Python Implementation",
Expand Down
2 changes: 1 addition & 1 deletion src/notion_database/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_number(self, col, text=None):
:param text: page text. If no text is given, for database only.
:return:
"""
if text and isinstance(text, numbers.Number):
if (text is not None) and isinstance(text, numbers.Number):
number = text
else:
number = {}
Expand Down

0 comments on commit 3297373

Please sign in to comment.