From 59d212b8d599a3066e076e7dbb9e25ab0f10b71f Mon Sep 17 00:00:00 2001 From: Luke Olson Date: Wed, 14 Feb 2024 21:12:01 -0600 Subject: [PATCH] fix comparison --- course/page/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/page/upload.py b/course/page/upload.py index 782ffe3ee..b88e75755 100644 --- a/course/page/upload.py +++ b/course/page/upload.py @@ -83,7 +83,7 @@ def clean_uploaded_file(self): data = json.load(uploaded_file) # check for a notebook format of at least 4 - if int(data["nbformat"]) >= 4: + if int(data["nbformat"]) < 4: raise except Exception: raise forms.ValidationError(_("Uploaded file is not a "