From 69f18111df47c0123c52603e900588c7f992cbfc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 5 Mar 2021 17:26:42 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocksapp.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kivyblocks/blocksapp.py b/kivyblocks/blocksapp.py index 716a9c2..40261c5 100644 --- a/kivyblocks/blocksapp.py +++ b/kivyblocks/blocksapp.py @@ -42,12 +42,6 @@ class ServerInfo: self.publickey = None self.authCode = None - def realurl(url): - if url.startswith('https://') or url.startswith('http://'): - return url - config = getConfig() - return '%s%s' % (config.uihome, url) - def getServerPK(self): config = getConfig() url = '%s%s' % (config.uihome, config.publickey_url) @@ -105,6 +99,12 @@ class BlocksApp(App): return Label(text='error') return x + def realurl(self, url): + if url.startswith('https://') or url.startswith('http://'): + return url + config = getConfig() + return '%s%s' % (config.uihome, url) + def get_user_data_path(self): if platform == 'android': Environment = autoclass('android.os.Environment')