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 zipfile
url = "https://puzzles.cyberfire.training/foundry/"
instance = "foundry"
url = "https://puzzles.cyberfire.training/{}/".format(instance)
url = url.rstrip("/")
r = requests.get(url + "/puzzles.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():
if cat == "wopr":
continue
@ -25,5 +27,6 @@ for cat, entries in puzzles.items():
for fn in files:
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)

View File

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