mirror of https://github.com/dirtbags/moth.git
More readable team names
This commit is contained in:
parent
ab08f8381c
commit
14bc271115
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue