File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -511,21 +511,24 @@ def get_activity_data():
511
511
# Find all tables that match the criteria
512
512
tables = soup .find_all ('table' , {'class' : 'wikitable' })
513
513
# Iterate through each table
514
+ task_cat_three = ''
514
515
for table in tables :
515
516
rows = table .find_all ('tr' )
516
- for row1 in rows [1 :]: # Skip the header row
517
- cols = row1 .find_all ('td' )
517
+ for row in rows [1 :]: # Skip the header row
518
+ cols = row .find_all ('td' )
518
519
if len (cols ) < 3 :
519
520
continue
520
521
task_page = cols [0 ].find ('a' )
521
522
if task_page :
522
- task_cat_three = task_page .get ('title' , [] )
523
+ task_cat_three = task_page .get ('title' , '' )
523
524
if "ST" in task_cat_three :
524
525
continue
525
- if task_cat_three :
526
+ if "-1" in task_cat_three :
526
527
task_stage_id = get_cat_three_info (cat_three_dict , task_cat_three , "stage_id" )
527
528
activity_id = extract_activity_from_stage_id (task_stage_id )
528
529
break
530
+ if "-1" in task_cat_three :
531
+ break
529
532
elif status_span and "未开始" in status_span .text :
530
533
status = "未开始"
531
534
activities [activity_name ] = {'status' : status , 'id' : activity_id }
You can’t perform that action at this time.
0 commit comments