From 2ee745a60b728fd41908fbcadc3cfac8320f4cd9 Mon Sep 17 00:00:00 2001 From: Denis Tereshkin Date: Wed, 26 May 2021 23:01:43 +0700 Subject: [PATCH] bugfix: hap_csv_upload: correct ticker generation --- hap_csv_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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