.BANCHO. .HIDE. Changed mirror/apiurl to mirror/api in config file

This commit is contained in:
Nyo 2016-10-16 10:43:04 +02:00
parent a48aa73a0b
commit b61ac0e9b6
2 changed files with 3 additions and 3 deletions

View File

@ -684,7 +684,7 @@ def updateBeatmap(fro, chan, to):
if beatmapData is None: if beatmapData is None:
return "Couldn't find beatmap data in database. Please load the beatmap's leaderboard and try again." 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_set_id": beatmapData["beatmapset_id"],
"beatmap_name": beatmapData["song_name"], "beatmap_name": beatmapData["song_name"],
"username": token.username, "username": token.username,

View File

@ -44,7 +44,7 @@ class config:
self.config.get("server","cikey") self.config.get("server","cikey")
self.config.get("server","cloudflare") self.config.get("server","cloudflare")
self.config.get("mirror","apiurl") self.config.get("mirror","url")
self.config.get("mirror","apikey") self.config.get("mirror","apikey")
self.config.get("debug","enable") self.config.get("debug","enable")
@ -97,7 +97,7 @@ class config:
self.config.set("server", "cloudflare", "0") self.config.set("server", "cloudflare", "0")
self.config.add_section("mirror") 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.set("mirror", "apikey", "anotherkey")
self.config.add_section("debug") self.config.add_section("debug")