commit e0f4537c8f5377d29cbaede3bd5120abac12ed0f
parent 0fcc4cc7339459c7d5572307048c15f0a9e4d9ef
Author: Louis Burda <quent.burda@gmail.com>
Date: Fri, 9 Jul 2021 13:28:01 +0200
fix solidnames with # as first char from creating wrong comparison
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checker/src/checker.py b/checker/src/checker.py
@@ -376,8 +376,8 @@ def getfile(filetype: str) -> tuple[bytes, bytes]:
else:
model = rand.choice([v for v in extra_models if v.endswith("-bin.stl")])
stlfile = open(model, "rb").read()
- solidname = fakeid(minlen=15, maxlen=15)
- stlfile = solidname + stlfile[15:] # replaces b"OpenSCAD Model\n"
+ solidname = fakeid(minlen=14, maxlen=14)
+ stlfile = b"#" + solidname + stlfile[15:] # replaces b"OpenSCAD Model\n"
return stlfile, solidname