Skip to content

Commit 34e7cbe

Browse files
author
Per Halvorsen
committed
add is_hidden option
1 parent b7baca4 commit 34e7cbe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎home/notion.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ def parse_invite_wedding_results(results):
238238
def parse_album_results(results, auth_params):
239239
parsed_results = []
240240
for result in results:
241+
# check for "#hidden" checkbox
242+
is_hidden = result['properties'].get('Hidden', {}).get('checkbox', False)
243+
244+
if is_hidden:
245+
continue
246+
241247
url_path = result['properties']['URL']['url'].removeprefix("img/")
242248
parsed_result = {
243249
"order": result['properties']['Order']['number'],

0 commit comments

Comments
 (0)