Skip to content

Commit 894dc3f

Browse files
committed
Fix SHA check logic
1 parent befe5a6 commit 894dc3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_notion_scripts/upload.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ def _is_existing_equivalent(
127127
existing_file_sha = _calculate_file_sha_from_url(
128128
file_url=existing_page_block.file_info.url,
129129
)
130-
if local_file_sha != existing_file_sha:
131-
return True
130+
return local_file_sha == existing_file_sha
132131

133132
return existing_page_block == local_block
134133

0 commit comments

Comments
 (0)