added audit latest code

This commit is contained in:
Ubuntu 2024-06-21 12:59:11 +00:00
parent aa94152b31
commit 291510922e
2 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,7 @@ def run_audit(msg):
id = script_id id = script_id
)) ))
print("STATUS AUDIT",status) print("STATUS AUDIT",status)
# status.only_audit = True 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

@ -61,3 +61,4 @@ class ScriptAuditModel(models.Model):
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) isfdx = models.BooleanField(default=False)
only_audit = models.BooleanField(null=True, blank=True)