Skip to content

Commit

Permalink
Merge pull request #72 from wrjlewis/fix-infinite-loop
Browse files Browse the repository at this point in the history
fix infinite loop
  • Loading branch information
wrjlewis authored Nov 29, 2022
2 parents 0099a78 + 57ede19 commit dce4903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Thanks!</string>
<string>notionSpaceId</string>
</array>
<key>version</key>
<string>0.5-alfred4</string>
<string>0.5.1-alfred4</string>
<key>webaddress</key>
<string>https://github.com/wrjlewis/notion-search-alfred-workflow/</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion notion.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def createSubtitleChain(recordMap, id):
stack = []
parent_table = recordMap.get('block').get(id).get('value').get('parent_table')
id = recordMap.get('block').get(id).get('value').get('parent_id')
while True:
for x in range(10):
if (parent_table == "block"):
try:
stack.append(recordMap.get('block').get(id).get('value').get('properties').get('title')[0][0])
Expand Down

0 comments on commit dce4903

Please sign in to comment.