Browse Source

ntags join syntax error resulted in exception for whole entry, is now fixed

master
alpcentaur 9 months ago
parent
commit
192bdb5441
3 changed files with 8 additions and 9 deletions
  1. +7
    -3
      fdb_spider_interface.py
  2. +1
    -1
      new_message_file.txt
  3. +0
    -5
      roomhistories/657c97e5ebb39dd248d38d51.txt

+ 7
- 3
fdb_spider_interface.py View File

@ -551,14 +551,18 @@ if __name__ == '__main__':
print(ntags)
ntag_count = 0
for ntag in ntags:
print('searching for ntag: ', ntag)
for nword in name_data_lower:
if ntag.lower() in nword:
if nword != '':
ntag_count += 1
print(ntag, ' ntag was found')
break
print('ntag count is ', ntag_count, 'ntag_length is ', ntags_length)
if ntag_count == ntags_length:
contains_tag = True
tag_list.append(ntags.join('_') + ' in name')
tag_list.append('_'.join(ntags) + ' in name')
ntag_count = 0
for ntag in ntags:
@ -569,7 +573,7 @@ if __name__ == '__main__':
break
if ntag_count == ntags_length:
contains_tag = True
tag_list.append(ntags.join('_') + ' in info')
tag_list.append('_'.join(ntags) + ' in info')
ntag_count = 0
for ntag in ntags:
@ -580,7 +584,7 @@ if __name__ == '__main__':
break
if ntag_count == ntags_length:
contains_tag = True
tag_list.append(ntags.join('_') + ' in text')
tag_list.append('_'.join(ntags) + ' in text')
else:

+ 1
- 1
new_message_file.txt View File

@ -1 +1 @@
updaterooms 657c97e5ebb39dd248d38d51§%§%kJRnyNTcJSHa8sAew
updaterooms 657c97e5ebb39dd248d38d51§%§%BvLofBxRKbtk9AHkK

+ 0
- 5
roomhistories/657c97e5ebb39dd248d38d51.txt View File

@ -1,6 +1 @@
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1AZS8RDL/de/overview?28|81303963 - Entwicklung eines webbasierten Trainings für Fachthemen im Bereich des nachhaltigem Entrepreneurships>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXR2YYRYYDA/de/overview?38|81298137-Development of tools, instruments and project concepts to leverage climate finance to scale up renewables and energy efficiency in Côte d'Ivoire>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1L7LSVE5/de/overview?53|Pool of energy efficiency experts>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1L1QRSZU/de/overview?85|81303447-Implementing Energy Efficiency during refurbishment of non-residential buildings in Morocco>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1EQWGUKJ/de/overview?90|81301134 - Provide recommendations for Donor Interventions to support Green Industrial Policies and Just Transition Implications>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1CV0XTS6/de/overview?97|81296882-Unterstützungsleistungen für das SV Klima>

Loading…
Cancel
Save