add debug message to output latest file
This commit is contained in:
@@ -172,9 +172,14 @@ def api_positions():
|
|||||||
|
|
||||||
@app.route("/api/lots")
|
@app.route("/api/lots")
|
||||||
def api_lots():
|
def api_lots():
|
||||||
|
api_flex_sync()
|
||||||
flex_status = get_flex_status()
|
flex_status = get_flex_status()
|
||||||
if flex_status.get("configured") and flex_status.get("data_dir"):
|
if flex_status.get("configured") and flex_status.get("data_dir"):
|
||||||
latest_file, flex_lots = load_latest_flex_lots(flex_status["data_dir"])
|
latest_file, flex_lots = load_latest_flex_lots(flex_status["data_dir"])
|
||||||
|
print(
|
||||||
|
f"[D]Latest file{latest_file} "
|
||||||
|
)
|
||||||
|
|
||||||
if latest_file and flex_lots:
|
if latest_file and flex_lots:
|
||||||
return jsonify(flex_lots)
|
return jsonify(flex_lots)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user