Skip to content

Commit d3a8485

Browse files
committed
geometry fixes:
- Built STL for Lid and MainCase wall with thinner wall around the sensors (so the silicone grippers don't get stuck and Sensors insert more easily) - More space for cables in DisplayCase - Improve stl sorting algorithm (until now loops were not reordered, now they are reordered preserving direction) This changes all STL files without actual geometry changes, further reduces false-positives in stl diffs. - Fix length of screw to not cause "non-watertight" stl at the edges of the holes of the backrack mount (leave 0.4mm ridge between screw hole and locking pin channel)
1 parent 3fcd3b3 commit d3a8485

38 files changed

Lines changed: 510548 additions & 492197 deletions

customizer/src/obs_case_customizer/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ async def job(request: Request, uid: uuid.UUID):
322322
@app.get("/download/{uid}.zip", response_class=FileResponse)
323323
async def job(request: Request, uid: uuid.UUID):
324324
filename = Path(tempfile.gettempdir()) / str(uid) / "OpenBikeSensor_customized.zip"
325-
return FileResponse(filename)
325+
if filename.is_file():
326+
return FileResponse(filename)
327+
else:
328+
raise HTTPException(status_code=202, detail="<html><body>Your Request is still processing,"
329+
f'<A href="../jobstate/{uid}">View job status</A></body></html>')
326330

327331

328332
@app.websocket("/jobstate/{uid}")

customizer/src/obs_case_customizer/templates/job.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
<h1>Build status</h1>
3737

3838
<p>This page will show the progress of your build <code>{{ uuid }}</code>. Please
39-
wait until the build is finished to download the result.</p>
39+
wait until the build is finished to download the result. You can return to this page
40+
within the next few hours to download build results (or keep it open in a browser
41+
window doing something else). Normally building the case takes up to 15 minutes.</p>
4042

4143
<span id="progress">0 %</span> <a id="download" href="/download/{{uuid}}.zip">Download</a>
4244
<pre id="log">Connecting...</pre>

0 commit comments

Comments
 (0)