|
@ -161,8 +161,11 @@ if __name__ == '__main__': |
|
|
print(room_fdb, i) |
|
|
print(room_fdb, i) |
|
|
for key in data[room_fdb][i]: |
|
|
for key in data[room_fdb][i]: |
|
|
contains_tag = False |
|
|
contains_tag = False |
|
|
|
|
|
name_data_lower = [word.lower() for word in data[room_fdb][i][key]["name"].split(' ')] |
|
|
|
|
|
info_data_lower = [word.lower() for word in data[room_fdb][i][key]["info"].split(' ')] |
|
|
|
|
|
text_data_lower = [word.lower() for word in data[room_fdb][i][key]["text"].split(' ')] |
|
|
for tag in eval(room_tags): |
|
|
for tag in eval(room_tags): |
|
|
if tag in (data[room_fdb][i][key]["name"].split(' ') or data[room_fdb][i][key]["info"].split(' ') or data[room_fdb][i][key]["text"].split(' ')): |
|
|
|
|
|
|
|
|
if tag.lower() in (name_data_lower or info_data_lower or text_data_lower): |
|
|
contains_tag = True |
|
|
contains_tag = True |
|
|
if contains_tag == True: |
|
|
if contains_tag == True: |
|
|
|
|
|
|
|
@ -403,8 +406,11 @@ if __name__ == '__main__': |
|
|
print(room_fdb, i) |
|
|
print(room_fdb, i) |
|
|
for key in data[room_fdb][i]: |
|
|
for key in data[room_fdb][i]: |
|
|
contains_tag = False |
|
|
contains_tag = False |
|
|
|
|
|
name_data_lower = [word.lower() for word in data[room_fdb][i][key]["name"].split(' ')] |
|
|
|
|
|
info_data_lower = [word.lower() for word in data[room_fdb][i][key]["info"].split(' ')] |
|
|
|
|
|
text_data_lower = [word.lower() for word in data[room_fdb][i][key]["text"].split(' ')] |
|
|
for tag in eval(room_tags): |
|
|
for tag in eval(room_tags): |
|
|
if tag in (data[room_fdb][i][key]["name"].split(' ') or data[room_fdb][i][key]["info"].split(' ') or data[room_fdb][i][key]["text"].split(' ')): |
|
|
|
|
|
|
|
|
if tag.lower() in (name_data_lower or info_data_lower or text_data_lower): |
|
|
contains_tag = True |
|
|
contains_tag = True |
|
|
if contains_tag == True: |
|
|
if contains_tag == True: |
|
|
|
|
|
|
|
|