diff options
author | navanchauhan <navanchauhan@gmail.com> | 2023-05-29 13:18:29 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2023-05-29 13:18:29 -0600 |
commit | afa6a62b1bb49307dcd5872bf231a4a8c45b72b9 (patch) | |
tree | 0363e811bd81c2418696d73bf91914b0abef3321 /main.py | |
parent | ba2a320b4e382c977ede55a7658047d34b16b434 (diff) |
switch to requirements.txt
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -75,10 +75,10 @@ def pyramid_list(lst, sort_canadian=True): print(f'Shifting {company_to_add}') if company_to_add is not None: pyramid[-1].pop(company_idx) - pyramid[-2].append(company_to_add) - + pyramid[-2].append(company_to_add) + for _ in range(4): - if len(pyramid) > 3: + if len(pyramid) > 2: if len(pyramid[-1]) < len(pyramid[-2]): pyramid[-3].append(pyramid[-2][-1]) pyramid[-2].pop(-1) @@ -235,13 +235,13 @@ class CompanySelector: dividend_color = block_color #(1,50,32) # Green color font_color = (255, 255, 255) # White color normal_block = (3, 37, 126) # Dark Blue - padding = 10 # Padding around blocks + padding = 15 # Padding around blocks radius = 10 logo_padding = 100 # top padding for logo pyramid_padding_bottom = 350 # bottom padding for pyramid max_companies_in_row = 5 - primary_font = "./assets/baskerville.ttf" - secondary_font = "./assets/gill_sans_bold.ttf" + primary_font = "assets/baskerville.ttf" + secondary_font = "assets/gill_sans_bold.ttf" # Group the companies by their scores pyramid = {} |