import math to make it usable

This commit is contained in:
Lilian 2023-02-28 15:08:05 +01:00 committed by Kilton937342
parent 339f18bfec
commit 846127d9aa
1 changed files with 2 additions and 1 deletions

View File

@ -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: