Remove some debug statements

This commit is contained in:
Mark Veidemanis 2022-08-26 20:45:00 +01:00
parent ae25e1980e
commit 822c474867
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 0 additions and 2 deletions

View File

@ -213,14 +213,12 @@ def hash_lookup(user, data_dict):
if data_dict[key]: if data_dict[key]:
if isinstance(data_dict[key], str): if isinstance(data_dict[key], str):
if hash in data_dict[key]: if hash in data_dict[key]:
print("Replacing", data_dict[key], "with", total[hash])
data_dict[key] = data_dict[key].replace( data_dict[key] = data_dict[key].replace(
f"{hash}", total[hash] f"{hash}", total[hash]
) )
elif isinstance(data_dict[key], dict): elif isinstance(data_dict[key], dict):
for k2, v2 in data_dict[key].items(): for k2, v2 in data_dict[key].items():
if hash in v2: if hash in v2:
print("Replacing", v2, "with", total[hash])
data_dict[key][k2] = v2.replace(f"{hash}", total[hash]) data_dict[key][k2] = v2.replace(f"{hash}", total[hash])