Skip to content

Commit

Permalink
File name format fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
softandiron committed Aug 13, 2021
1 parent 1447e5d commit 563b073
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions excel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def build_excel_file(account, my_positions, my_operations, rates_today_cb, marke
investing_period_str, cash_rub, payin_payout, xirr_value, tax_rate, logger=logging.getLogger()):

logger.info('creating excel file..')
excel_file_name = 'tinkoffReport_' + account.broker_account_id + data_parser.account_data['now_date'].strftime('%Y.%b.%d') + '.xlsx'
excel_file_name = 'tinkoffReport_' + data_parser.account_data['now_date'].strftime('%Y.%b.%d') + '_'\
+ account.broker_account_id + '.xlsx'
workbook = xlsxwriter.Workbook(excel_file_name)
worksheet_port = workbook.add_worksheet("Portfolio")
worksheet_ops = workbook.add_worksheet("Operations")
Expand Down Expand Up @@ -540,7 +541,7 @@ def print_clarification(s_row, s_col ):
merge_format['left'])
n += 4
worksheet_port.merge_range(s_row + n, s_col + 1, s_row + n, s_col + 16,
' Разработанно @softandiron и контрибьюторами. Версия v2.x, 2021 год.',
' Разработано @softandiron и контрибьюторами. Версия v2.x, 2021 год.',
merge_format['left'])
n += 1
worksheet_port.merge_range(s_row + n, s_col + 1, s_row + n, s_col + 16,
Expand Down

1 comment on commit 563b073

@softandiron
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чуть-чуть изменил формат имени готового файла
Подправил орфографию

Please sign in to comment.