add >, <, ~ and % operators to calc
This commit is contained in:
2
calc.py
2
calc.py
@@ -1,7 +1,7 @@
|
|||||||
from helpers import *
|
from helpers import *
|
||||||
|
|
||||||
calc_users = open_json_file("calc", [])
|
calc_users = open_json_file("calc", [])
|
||||||
math_operators = ["+", "-", "*", "/", "&", "|"]
|
math_operators = ["+", "-", "*", "/", "&", "|", ">", "<", "~", "%"]
|
||||||
ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors
|
ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors
|
||||||
calc_perm = "utils.calc"
|
calc_perm = "utils.calc"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user