fix: change status to deleted on data deletion
This commit is contained in:
parent
8bf40a6722
commit
d7c8b5cfd6
1 changed files with 1 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ class PersonalDataDeletionRequest(Document):
|
|||
SET `{1}` = '{2}' {3}
|
||||
WHERE `name` = '{4}' """.format(ref_doc['doctype'], ref_doc['match_field'], anonymize_match_value,#nosec
|
||||
anonymize_fields, d['name']))
|
||||
self.db_set('status', 'Deleted')
|
||||
|
||||
def remove_unverified_record():
|
||||
frappe.db.sql("""DELETE FROM `tabPersonal Data Deletion Request` WHERE `status` = 'Pending Verification' and `creation` < (NOW() - INTERVAL '7' DAY)""")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue