Fixed the conflicts on TriggerView

This commit is contained in:
monilprajapati
2024-06-17 23:44:49 +05:30
2 changed files with 568 additions and 500 deletions
+12
View File
@@ -97,6 +97,7 @@ def md5_base64(a):
a = str(a)
foundhash = hashlib.md5(a.encode('utf-8')).hexdigest()
return base64.b64encode(foundhash.encode('utf-8'))
@shuffle_filters.register
def base64_encode(a):
@@ -107,6 +108,17 @@ def base64_encode(a):
except:
return base64.b64encode(a).decode()
@shuffle_filters.register
def random_element(a):
# Choose a random item from an array
a = list(a)
if len(a) == 0:
return ""
return random.choice(a)
@shuffle_filters.register
def base64_decode(a):
a = str(a)
File diff suppressed because it is too large Load Diff