|
|
@ -1,6 +1,6 @@
|
|
|
|
import pymongo, json, re
|
|
|
|
import pymongo, json, re
|
|
|
|
from bson import json_util
|
|
|
|
from bson import json_util
|
|
|
|
print('ver: 1.5')
|
|
|
|
print('ver: 1.51')
|
|
|
|
# dbprep
|
|
|
|
# dbprep
|
|
|
|
fsroot = '/autograder/source/'
|
|
|
|
fsroot = '/autograder/source/'
|
|
|
|
datasets = ['movies', 'comments']
|
|
|
|
datasets = ['movies', 'comments']
|
|
|
@ -89,6 +89,7 @@ def evaluate(query : str):
|
|
|
|
if query.endswith(';'): query = query[:-1]
|
|
|
|
if query.endswith(';'): query = query[:-1]
|
|
|
|
true = True
|
|
|
|
true = True
|
|
|
|
false = False
|
|
|
|
false = False
|
|
|
|
|
|
|
|
null = None
|
|
|
|
data = list(eval(query))
|
|
|
|
data = list(eval(query))
|
|
|
|
return [postproc_iter(data, n) if query else None for n in (True, False)]
|
|
|
|
return [postproc_iter(data, n) if query else None for n in (True, False)]
|
|
|
|
|
|
|
|
|
|
|
|