diff --git a/hap_csv_upload.py b/hap_csv_upload.py index 88f4f0d..9e7e710 100644 --- a/hap_csv_upload.py +++ b/hap_csv_upload.py @@ -126,7 +126,7 @@ def main(): if not matches: print('Invalid ticker id in file') return - year_code = matches.group(3)[:-1] + year_code = matches.group(3)[-1] month_code = get_month_code(int(matches.group(2))) out_ticker = base + month_code + year_code