remove script hashing since it was erroring out on some characters

This commit is contained in:
sadnub
2021-12-10 18:51:32 -05:00
parent 63b1ccc7a7
commit 1726341aad
2 changed files with 4 additions and 3 deletions

View File

@@ -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"])

View File

@@ -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!")