Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
JackGruber committed Dec 26, 2020
2 parents 2e85c23 + 3592cd9 commit ae63efd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions note_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def Main(notebook, title, add_tag, token, url, query, order_by, order_dir):
body = "| created time | updated time | Title |\n"
body += "| --- | --- | --- |\n"
page = 1
print(query)
while True:
search = joplinapi.Search(query, 'note', limit=50, page=page, fields='id, title, created_time, user_updated_time', order_by=order_by, order_dir=order_dir)
for note in search['items']:
Expand All @@ -139,7 +138,7 @@ def Main(notebook, title, add_tag, token, url, query, order_by, order_dir):
data = {}
data['body'] = body
if( joplinapi.UpdateNote(overview_id, json.dumps(data)) ):
print("Note '" + title + "' in '" + notebook + "' updated")
print("Note '" + title + " updated")
else:
print("Error on note create")
sys.exit(1)
Expand Down

0 comments on commit ae63efd

Please sign in to comment.