Changeset 35117


Ignore:
Timestamp:
2021-04-24T15:14:02+12:00 (3 years ago)
Author:
davidb
Message:

Fix for why extracting flag was always picking the last entry in the table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/errata-categories/escwikipedia.py

    r35104 r35117  
    166166       
    167167        for key in header_to_vals.keys():
     168            val = header_to_vals.get(key)[i]
     169
    168170            if (key == "Country"):
    169                 country_flag_img = country_tag.find("img")                   
     171                country_flag_img = val.find("img")
    170172                this_country_year_rec["FlagImg"] = str(country_flag_img)
    171173                continue
    172 
    173             val = header_to_vals.get(key)[i]
    174174       
    175175            if key == "Artist":
Note: See TracChangeset for help on using the changeset viewer.