Mount the FS through the CLI tool

This commit is contained in:
2017-10-07 14:38:59 -06:00
parent e8923e1ab8
commit d5f6c27ff8
4 changed files with 139 additions and 93 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ class ItemManager:
item.pop('dirty', None)
item.pop('updated_at', None)
response = self.standard_notes.sync(dirty_items)
response = self.sn_api.sync(dirty_items)
self.mapResponseItemsToLocalItems(response['response_items'])
self.mapResponseItemsToLocalItems(response['saved_items'], metadata_only=True)
@@ -85,6 +85,6 @@ class ItemManager:
item['dirty'] = True
self.syncItems()
def __init__(self, username, password):
self.standard_notes = StandardNotesAPI(username, password)
def __init__(self, sn_api):
self.sn_api = sn_api
self.syncItems()