Merge pull request #50 from EmperLex/main

Fix hardcoded url for accessing the map editor.
This commit is contained in:
Kaan Soral
2023-10-28 13:57:18 +03:00
committed by GitHub
+1 -1
View File
@@ -407,7 +407,7 @@ class MapLister(webapp.RequestHandler):
def map_to_html(m): def map_to_html(m):
return "<div style='margin-bottom: 2px'><a href='%s/%s' target='_blank' style='color: white; font-weight: bold; text-decoration:none'>%s</a></div>"%(url,m.id(),m.id()) return "<div style='margin-bottom: 2px'><a href='%s/%s' target='_blank' style='color: white; font-weight: bold; text-decoration:none'>%s</a></div>"%(url,m.id(),m.id())
html="<style> html{background-color:gray}</style>" html="<style> html{background-color:gray}</style>"
if is_sdk: url="http://thegame.com/admin/map_editor" if is_sdk: url="%s/admin/map_editor"%(domain.base_url)
else: url="%s/%s"%(domain.base_url,"communitymaps") else: url="%s/%s"%(domain.base_url,"communitymaps")
if order=="key": if order=="key":
for m in Map.query().fetch(5000,keys_only=True): html+=map_to_html(m) for m in Map.query().fetch(5000,keys_only=True): html+=map_to_html(m)