ndurner commited on
Commit
8b1250d
·
1 Parent(s): 2414a72

add datetime

Browse files
Files changed (1) hide show
  1. 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