Changeset 36003 for main


Ignore:
Timestamp:
2022-01-14T14:28:08+13:00 (2 years ago)
Author:
davidb
Message:

Changed to generate all-caps

File:
1 edited

Legend:

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

    r35872 r36003  
    222222            country_year_title = country_year_rec.get("Title")
    223223            country_year_suffix = re.sub(r"\s+","",country_year_title)
    224             new_country_year_key = country_year + country_year_suffix[0:3]
     224            new_country_year_key = country_year + country_year_suffix[0:3].upper()
    225225            country_year_recs[new_country_year_key] = country_year_rec
    226226
    227227            this_country_year_title = this_country_year_rec.get("Title")
    228228            this_country_year_suffix = re.sub(r"\s+","",this_country_year_title)
    229             country_year = country_year + this_country_year_suffix[0:3]
     229            country_year = country_year + this_country_year_suffix[0:3].upper()
    230230           
    231231        country_year_recs[country_year] = this_country_year_rec
Note: See TracChangeset for help on using the changeset viewer.