Browse Source

fixed bug regarding delta to int, must be delta.days.. bug needs still to be fixed in automated roomupdate section

master
alpcentaur 9 months ago
parent
commit
157cab2910
4 changed files with 11 additions and 6 deletions
  1. +6
    -5
      fdb_spider_interface.py
  2. +1
    -1
      new_message_file.txt
  3. +0
    -0
      roomhistories/65afc5c67954218b50162bc2.txt
  4. +4
    -0
      roomhistories/65afc67d7954218b50162c22.txt

+ 6
- 5
fdb_spider_interface.py View File

@ -546,16 +546,17 @@ if __name__ == '__main__':
for i in eval(iteration_var_list):
try:
print(room_fdb, i)
print('oioioioioiOIOIOI')
for key in data[room_fdb][i]:
contains_tag = False
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(' ')]
print('got until ONE')
tag_list = []
for tag in eval(room_tags):
print('got until TWO')
if '_' in tag:
ntags = tag.split('_')
ntags_length = len(ntags)
@ -630,7 +631,7 @@ if __name__ == '__main__':
if tword_contains_tag == True:
contains_tag = True
tag_list.append(tag + ' in text')
print('got until THREE')
if contains_tag == True:
#print('------------------')
#print(name_data_lower, info_data_lower, text_data_lower)
@ -656,8 +657,8 @@ if __name__ == '__main__':
now_formatted = dateutil.parser.parse(str(now))
delta = period_data_formatted - now_formatted
if message_was_already_there == False and delta < int(room_deadline_days):
print('delta', delta, int(delta.days))
if message_was_already_there == False and int(delta.days) < int(room_deadline_days):

+ 1
- 1
new_message_file.txt View File

@ -1 +1 @@
printrooms§%§%oJ4yxBgLbGg7S5LdR
updaterooms 65afc67d7954218b50162c22§%§%kr2Qt7t4a3dNCDYqm

+ 0
- 0
roomhistories/65afc5c67954218b50162bc2.txt View File


+ 4
- 0
roomhistories/65afc67d7954218b50162c22.txt View File

@ -0,0 +1,4 @@
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYYRY1F02T06C/de/overview?70|81302152-Conseil et soutien sur la promotion de la participation sociale et politique dans les communes partenaires à Madagascar>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1FMBKJ8D/de/overview?79|81303550-Backstopper*in zur Förderung der Sozialen Kohäsion und Interessensvertretung von Frauenorganisationen im Ostsudan>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1FYLRQ0V/de/overview?83|81301916a-Endline Surveys of the SUN Global Programme>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1FYYC41G/de/overview?87|81303178 - Regional Guidelines on Mineral Beneficiation>

Loading…
Cancel
Save