Simplify code_quality check

This commit is contained in:
Kaan Soral
2026-01-18 08:38:21 +03:00
parent 25124fcf02
commit 163fea6096
3 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ def serve_maps(order=""):
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())
html="<style> html{background-color:gray}</style>"
if is_sdk: url="%s/admin/map_editor"%(domain.base_url)
if is_sdk: url="%s/editmap"%(domain.base_url)
else: url="%s/%s"%(domain.base_url,"communitymaps")
if order=="key":
for m in Map.query().fetch(5000,keys_only=True): html+=map_to_html(m)