Combine obfuscated date and time to avoid leak

This commit is contained in:
Mark Veidemanis 2022-08-27 13:02:56 +01:00
parent a2d572baf4
commit 9b2d61831b
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,12 @@ def obfuscate_list(user, data):
second_part[index_x] = "*" * x_len second_part[index_x] = "*" * x_len
result = sep.join([*first_part, *second_part]) result = sep.join([*first_part, *second_part])
data[index][key] = result data[index][key] = result
for key in settings.COMBINE_FIELDS:
for index, item in enumerate(data):
if key in item:
k1, k2 = settings.COMBINE_FIELDS[key]
if k1 in item and k2 in item:
data[index][key] = item[k1] + item[k2]
def hash_list(user, data, hash_keys=False): def hash_list(user, data, hash_keys=False):