From b61ac0e9b6246009ed0445592715f958c8aa451b Mon Sep 17 00:00:00 2001 From: Nyo Date: Sun, 16 Oct 2016 10:43:04 +0200 Subject: [PATCH] .BANCHO. .HIDE. Changed mirror/apiurl to mirror/api in config file --- constants/fokabotCommands.py | 2 +- helpers/configHelper.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index da07ad2..17e4151 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -684,7 +684,7 @@ def updateBeatmap(fro, chan, to): if beatmapData is None: return "Couldn't find beatmap data in database. Please load the beatmap's leaderboard and try again." - response = requests.post("{}/api/v1/update_beatmap".format(glob.conf.config["mirror"]["apiurl"]), { + response = requests.post("{}/api/v1/update_beatmap".format(glob.conf.config["mirror"]["url"]), { "beatmap_set_id": beatmapData["beatmapset_id"], "beatmap_name": beatmapData["song_name"], "username": token.username, diff --git a/helpers/configHelper.py b/helpers/configHelper.py index 820ff56..1798c04 100644 --- a/helpers/configHelper.py +++ b/helpers/configHelper.py @@ -44,7 +44,7 @@ class config: self.config.get("server","cikey") self.config.get("server","cloudflare") - self.config.get("mirror","apiurl") + self.config.get("mirror","url") self.config.get("mirror","apikey") self.config.get("debug","enable") @@ -97,7 +97,7 @@ class config: self.config.set("server", "cloudflare", "0") self.config.add_section("mirror") - self.config.set("mirror", "apiurl", "http://storage.ripple.moe") + self.config.set("mirror", "url", "http://storage.ripple.moe") self.config.set("mirror", "apikey", "anotherkey") self.config.add_section("debug")