feat(): new feature
This commit is contained in:
@@ -58,7 +58,6 @@ async def legacy_calculate(file: UploadFile = File(...)):
|
||||
# Map Check response to old format
|
||||
data = resp.data
|
||||
return {
|
||||
"printer": data.get("printer", "Unknown"),
|
||||
"print_time_seconds": data.get("print_time_seconds", 0),
|
||||
"print_time_formatted": data.get("print_time_formatted", ""),
|
||||
"material_grams": data.get("material_grams", 0.0),
|
||||
@@ -72,4 +71,4 @@ def health_check():
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||
|
||||
Reference in New Issue
Block a user