(short_id: str, filename: str)
| 236 | |
| 237 | @app.route("/task/<short_id>/screenshot/<path:filename>") |
| 238 | def screenshot(short_id: str, filename: str): |
| 239 | folder = (TASKS_DIR / short_id / "screenshots").resolve() |
| 240 | target = (folder / filename).resolve() |
| 241 | if not target.exists(): |
| 242 | abort(404) |
| 243 | return send_from_directory(folder, filename) |
| 244 | |
| 245 | |
| 246 | def main(): |
nothing calls this directly
no outgoing calls
no test coverage detected