From ac544996411e5f11cb9075a3b411cf5b2dae96a7 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 12 Jun 2026 04:08:33 +0000 Subject: [PATCH] Turns out is the app.py that's causing it to allow negative wait times... --- Website Files/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website Files/app.py b/Website Files/app.py index e1f633a..0198c45 100644 --- a/Website Files/app.py +++ b/Website Files/app.py @@ -54,7 +54,7 @@ def show_waiting_time(): # model = joblib.load({folder and model name}) prediction = model.predict(Xnp) - return render_template('WaitingTime.html', waittime=round(prediction[0])) + return render_template('WaitingTime.html', waittime=round(max(0,prediction[0]))) if __name__ == '__main__':