diff options
Diffstat (limited to 'server-solsync.py')
-rw-r--r-- | server-solsync.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/server-solsync.py b/server-solsync.py index a228845..b183f86 100644 --- a/server-solsync.py +++ b/server-solsync.py @@ -1,12 +1,15 @@ from klein import run, route -import soledad_sync +import soledad_sync as sync + + +s = None @route('/start-sync') def home(request): print "GOT REQUEST FOR STARTING SYNC..." - d = soledad_sync.upload_soledad_stuff() + d = sync.upload_soledad_stuff(s) return d @@ -15,4 +18,8 @@ def ping(request): return 'easy!' if __name__ == "__main__": + global s + s = sync._get_soledad_instance_from_uuid( + sync.UUID, 'pass', '/tmp/soledadsync', sync.HOST, '', '') + run("localhost", 8080) |