From 849a13f02cbefe3ac4dea5bf5359e57517136174 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Dec 2024 09:41:09 +0000 Subject: [PATCH] fixing a small bug --- sys0-code/api/fetch_printer_data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys0-code/api/fetch_printer_data.php b/sys0-code/api/fetch_printer_data.php index 6f5fcda..e2983d5 100644 --- a/sys0-code/api/fetch_printer_data.php +++ b/sys0-code/api/fetch_printer_data.php @@ -90,7 +90,7 @@ while (mysqli_stmt_fetch($stmt)) { exec("curl --max-time 10 $url/api/job?apikey=$apikey > /var/www/html/user_files/" . $_SESSION["username"] . "/json.json"); $fg = file_get_contents("/var/www/html/user_files/" . $_SESSION["username"] . "/json.json"); $json = json_decode($fg, true); - if($json['state']=="Printing" or $system_status==99){ + if($json['state']=="Printing" or $json['state']=="Printing from SD" or $system_status==99){ $printer["printer_status"]="Von anderer Quelle aus gestartet."; $printer["progress"] = (int) $json['progress']['completion']; $printer["file"] = short_path($json["job"]["file"]["name"], 10, 10);