Update utils.py
Browse files
utils.py
CHANGED
@@ -5,7 +5,9 @@ from pptx import Presentation
|
|
5 |
|
6 |
def get_questions(file_path, level):
|
7 |
df = pd.read_json(file_path, lines=True)
|
8 |
-
|
|
|
|
|
9 |
|
10 |
result=[]
|
11 |
|
|
|
5 |
|
6 |
def get_questions(file_path, level):
|
7 |
df = pd.read_json(file_path, lines=True)
|
8 |
+
|
9 |
+
if level > 0:
|
10 |
+
df = df[df["Level"] == level]
|
11 |
|
12 |
result=[]
|
13 |
|