Audit Changes regarding audit_true field in scriptaudit models

This commit is contained in:
Ubuntu 2024-06-19 08:45:18 +00:00
parent 71b25755c8
commit 353fd2ae83
2 changed files with 64 additions and 63 deletions

View File

@ -161,6 +161,7 @@ def run_audit(msg):
id = script_id id = script_id
)) ))
print("STATUS AUDIT",status) print("STATUS AUDIT",status)
status.only_audit = True
# Blockchain # Blockchain
# if UserCredentialsForBlockchain.objects.filter(user=request.user).exists(): # if UserCredentialsForBlockchain.objects.filter(user=request.user).exists():
blockchain_obj = UserCredentialsForBlockchain.objects.get(user=user) blockchain_obj = UserCredentialsForBlockchain.objects.get(user=user)

View File

@ -60,4 +60,4 @@ class ScriptAuditModel(models.Model):
dialogue_language = models.CharField(max_length=50, blank=False, null=True) dialogue_language = models.CharField(max_length=50, blank=False, null=True)
transaction_hash = models.CharField(max_length=200, blank=False, null=True) transaction_hash = models.CharField(max_length=200, blank=False, null=True)
bchain_privatekey = models.CharField(max_length=200, blank=False, null=True) bchain_privatekey = models.CharField(max_length=200, blank=False, null=True)
isfdx = models.BooleanField(default=False) only_audit = models.BooleanField(null=True, blank=True)