diff --git a/fdb_spider_interface.py b/fdb_spider_interface.py index d910a70..70e0817 100644 --- a/fdb_spider_interface.py +++ b/fdb_spider_interface.py @@ -207,7 +207,11 @@ if __name__ == '__main__': period_data_formatted = dateutil.parser.parse(data[room_fdb][i][key]["period"]) 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(' ')] + try: + text_data_lower = [word.lower() for word in data[room_fdb][i][key]["text"].split(' ')] + except Exception as e: + print(e) + text_data_lower = ['none'] tag_list = [] for tag in eval(room_tags): @@ -583,7 +587,11 @@ if __name__ == '__main__': print('getting the period did not work for', room_fdb, i, key, ' ori err is:', e) 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(' ')] + try: + text_data_lower = [word.lower() for word in data[room_fdb][i][key]["text"].split(' ')] + except Exception as e: + print(e) + text_data_lower = ['NONE'] print('got until ONE') tag_list = [] for tag in eval(room_tags): diff --git a/new_message_file.txt b/new_message_file.txt index e6534a4..308aaf3 100644 --- a/new_message_file.txt +++ b/new_message_file.txt @@ -1 +1 @@ -createroom test42 ['giz','fdb2'] ['oi','open_source','cool'] 7§%§%RHAiN4X4uQ373tD3B \ No newline at end of file +updaterooms test42-2§%§%oM6dfcAhS3ydJoFNu \ No newline at end of file diff --git a/roomhistories/65818946ebb39dd248d44c69.txt b/roomhistories/65818946ebb39dd248d44c69.txt index ee2896f..5b7e585 100644 --- a/roomhistories/65818946ebb39dd248d44c69.txt +++ b/roomhistories/65818946ebb39dd248d44c69.txt @@ -576,3 +576,9 @@ Leistungsbild: Technische Ausrüstung nach HOAI § 53 ff., AG 4, 5, HZ II, LPH + + + + + + diff --git a/roomhistories/65c25bbb0de8c216e4a636f9.txt b/roomhistories/65c25bbb0de8c216e4a636f9.txt new file mode 100644 index 0000000..446e019 --- /dev/null +++ b/roomhistories/65c25bbb0de8c216e4a636f9.txt @@ -0,0 +1,3 @@ + + + diff --git a/roomhistories/65cb6a3954f8a2bb1a3a8f43.txt b/roomhistories/65cb6a3954f8a2bb1a3a8f43.txt new file mode 100644 index 0000000..15f7ee8 --- /dev/null +++ b/roomhistories/65cb6a3954f8a2bb1a3a8f43.txt @@ -0,0 +1 @@ +