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