Spaces:
Running
Running
add datetime
Browse files- code_exec.py +1 -1
code_exec.py
CHANGED
@@ -51,7 +51,7 @@ def eval_restricted_script(script):
|
|
51 |
'_write_': _default_write_,
|
52 |
|
53 |
# Define allowed imports
|
54 |
-
'__allowed_modules__': ['math'],
|
55 |
'__import__': __import__,
|
56 |
|
57 |
# Basic functions
|
|
|
51 |
'_write_': _default_write_,
|
52 |
|
53 |
# Define allowed imports
|
54 |
+
'__allowed_modules__': ['math', 'datetime'],
|
55 |
'__import__': __import__,
|
56 |
|
57 |
# Basic functions
|