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