Skip to content

Add Evernote tags to Teedy, Truncate Title and Description to match Teedy limits#13

Open
oz-glenn wants to merge 1 commit into
MattHodge:mainfrom
oz-glenn:main
Open

Add Evernote tags to Teedy, Truncate Title and Description to match Teedy limits#13
oz-glenn wants to merge 1 commit into
MattHodge:mainfrom
oz-glenn:main

Conversation

@oz-glenn

@oz-glenn oz-glenn commented Feb 4, 2022

Copy link
Copy Markdown
  1. Evernote tags were discarded when adding to Teedy. Added the capability to check if the Evernote tag already exists, if not then add it to Teedy, and the document.

This relies on tags being Teedy compliant (no spaces or colons). I've created a Python routine to make the tags Teedy compliant by replacing the spaces with underscores, and the colons with a dash at https://github.com/oz-glenn/evernote_tag_converter

  1. The import kept failing with code 200 from Teedy. This was because either Title or Details were too long on some Evernotes. Added code to enforce the limits (length 100 for Titles, 4000 for details) by truncation to the nearest word.

  2. The build failed until I updated resty v2 in go.mod to version 2.7.0.

I'm a lapsed C++ programmer, last programming professionally in the 90s. I've been in an unrelated field since then and this is my first attempt at go. I hope it's elegant enough :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant