From 77c9d5f5f3161ebdad98800e6d8fecda4f1cad13 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 12 Jul 2014 18:03:20 +0900 Subject: [PATCH] tweak dev url --- anki/sync.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/anki/sync.py b/anki/sync.py index d3d261f85..8f2755ed0 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -608,7 +608,7 @@ class RemoteServer(HttpSyncer): def syncURL(self): if os.getenv("DEV"): - return "http://localhost:5000/sync/" + return "https://l1.ankiweb.net/sync/" return SYNC_BASE + "sync/" def hostKey(self, user, pw): @@ -673,6 +673,8 @@ class FullSyncer(HttpSyncer): self.col = col def syncURL(self): + if os.getenv("DEV"): + return "https://l1.ankiweb.net/sync/" return SYNC_BASE + "sync/" def download(self): @@ -848,7 +850,7 @@ class RemoteMediaServer(HttpSyncer): def syncURL(self): if os.getenv("DEV"): - return "http://localhost:5001/" + return "https://l1.ankiweb.net/msync/" return SYNC_BASE + "msync/" def begin(self):