import math to make it usable
This commit is contained in:
parent
339f18bfec
commit
846127d9aa
@ -1,3 +1,4 @@
|
||||
import math
|
||||
import random
|
||||
import re
|
||||
import string
|
||||
@ -62,7 +63,7 @@ def parseCorrection(calc, replacer='...'):
|
||||
|
||||
def generate_from_data(data, quantity, key, forced_correction=False):
|
||||
locs = {}
|
||||
exec(data, {"random": random, "string": string, "sympy": sympy}, locs)
|
||||
exec(data, {"random": random, "string": string, "sympy": sympy, "math":math}, locs)
|
||||
try:
|
||||
main_func = locs['main']
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user