More readable team names

This commit is contained in:
Neale Pickett 2018-06-06 12:52:19 +00:00
parent ab08f8381c
commit 14bc271115
2 changed files with 8 additions and 4 deletions

View File

@ -3,13 +3,15 @@
import requests import requests
import zipfile import zipfile
url = "https://puzzles.cyberfire.training/foundry/" instance = "foundry"
url = "https://puzzles.cyberfire.training/{}/".format(instance)
url = url.rstrip("/") url = url.rstrip("/")
r = requests.get(url + "/puzzles.json") r = requests.get(url + "/puzzles.json")
puzzles = r.json() puzzles = r.json()
zf = zipfile.ZipFile("/tmp/foundry.zip", "w") zf = zipfile.ZipFile("/tmp/{}.zip".format(instance), "w")
for cat, entries in puzzles.items(): for cat, entries in puzzles.items():
if cat == "wopr": if cat == "wopr":
continue continue
@ -25,5 +27,6 @@ for cat, entries in puzzles.items():
for fn in files: for fn in files:
path = "{}/{}/{}".format(cat, points, fn) path = "{}/{}/{}".format(cat, points, fn)
data = requests.get(u).content furl="{}/{}/{}/{}".format(url, cat, dn, fn)
data = requests.get(furl).content
zf.writestr(path, data) zf.writestr(path, data)

View File

@ -230,7 +230,8 @@ nav li + li:before {
#scoreboard .teamname { #scoreboard .teamname {
font-size: 133%; font-size: 133%;
color: #D84B6E; color: white;
text-shadow: 0 0 0.2em black;
opacity: 0.8; opacity: 0.8;
position: absolute; position: absolute;
right: 1em; right: 1em;