From 3289b99b6e7eb5f8d24e847077c84636904e82fd Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 14 Feb 2024 12:59:43 +0100 Subject: [PATCH] fix issue credential next to pass didkit --- idhub/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idhub/models.py b/idhub/models.py index aa2ac7c..1412f00 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -631,7 +631,6 @@ class VerificableCredential(models.Model): if self.status == self.Status.ISSUED: return - self.status = self.Status.ISSUED self.subject_did = did self.issued_on = datetime.datetime.now().astimezone(pytz.utc) issuer_pass = cache.get("KEY_DIDS") @@ -651,6 +650,8 @@ class VerificableCredential(models.Model): else: self.data = self.user.encrypt_data(data, password) + self.status = self.Status.ISSUED + def get_context(self, domain): d = json.loads(self.csv_data) issuance_date = ''