sort shit
This commit is contained in:
parent
c16742291c
commit
4c47f2111e
2
Makefile
2
Makefile
|
@ -33,7 +33,7 @@ with open(sys.argv[2], "w") as f:
|
||||||
"any":any,
|
"any":any,
|
||||||
"all":all,
|
"all":all,
|
||||||
"cull_whitespace":(lambda x: " ".join(x.split())) })
|
"cull_whitespace":(lambda x: " ".join(x.split())) })
|
||||||
for filename in ([sys.argv[1]] if sys.argv[1] != "ALL" else glob.glob("cards/*.yaml")):
|
for filename in ([sys.argv[1]] if sys.argv[1] != "ALL" else sorted(glob.glob("cards/*.yaml"))):
|
||||||
if sys.argv[1] == "ALL": f.write(f"\n\n<h1>{filename}</h1>\n")
|
if sys.argv[1] == "ALL": f.write(f"\n\n<h1>{filename}</h1>\n")
|
||||||
with open(filename) as f2: data = f2.read()
|
with open(filename) as f2: data = f2.read()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue