Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #96 from esplinr/master

Better "Created Date" when importing new notes
  • Loading branch information...
commit c8a74e486ed9f906227f99bf532ba0688c25d0fe 2 parents 420e8b3 + fba8592
@VitaliyRodnenko authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  geeknote.py
  2. +2 −1  gnsync.py
View
3  geeknote.py
@@ -185,10 +185,11 @@ def loadNoteContent(self, note):
note.content = self.getNoteStore().getNoteContent(self.authToken, note.guid)
@EdamException
- def createNote(self, title, content, tags=None, notebook=None):
+ def createNote(self, title, content, tags=None, notebook=None, created=None):
note = Types.Note()
note.title = title
note.content = content
+ note.created = created
if tags:
note.tagNames = tags
View
3  gnsync.py
@@ -162,7 +162,8 @@ def _create_note(self, file_note):
result = GeekNote().createNote(
title=file_note['name'],
content=content,
- notebook=self.notebook_guid)
+ notebook=self.notebook_guid,
+ created=file_note['mtime'])
if result:
logger.info('Note "{0}" was created'.format(file_note['name']))
Please sign in to comment.
Something went wrong with that request. Please try again.