remove script hashing since it was erroring out on some characters
This commit is contained in:
@@ -31,4 +31,5 @@ class Command(BaseCommand):
|
||||
script.script_body = base64.b64decode(
|
||||
script.code_base64.encode("ascii", "ignore")
|
||||
).decode("ascii", "ignore")
|
||||
script.hash_script_body() # also saves script
|
||||
# script.hash_script_body() # also saves script
|
||||
script.save(update_fields=["script_body"])
|
||||
|
||||
@@ -36,7 +36,7 @@ class GetAddScripts(APIView):
|
||||
serializer.is_valid(raise_exception=True)
|
||||
obj = serializer.save()
|
||||
|
||||
obj.hash_script_body()
|
||||
# obj.hash_script_body()
|
||||
|
||||
return Response(f"{obj.name} was added!")
|
||||
|
||||
@@ -65,7 +65,7 @@ class GetUpdateDeleteScript(APIView):
|
||||
serializer.is_valid(raise_exception=True)
|
||||
obj = serializer.save()
|
||||
|
||||
obj.hash_script_body()
|
||||
# obj.hash_script_body()
|
||||
|
||||
return Response(f"{obj.name} was edited!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user