.BANCHO. .HIDE. Changed mirror/apiurl to mirror/api in config file
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -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")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user