#11 fixxxx scary bug

This commit is contained in:
Simple_Not 2024-03-19 14:12:14 +10:00
parent 192687a5ea
commit a571709afa

5
bot.py
View File

@ -8,6 +8,11 @@ from global_conf import CONFIG
def remake_field_generator(d, field='text'): def remake_field_generator(d, field='text'):
if isinstance(d, list):
for k2 in d:
for id_val in remake_field_generator(k2):
yield id_val
elif isinstance(d, dict):
for k, v in d.items(): for k, v in d.items():
if k == field: if k == field:
d[k] = '<blank!>' d[k] = '<blank!>'