Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Jan 29, 2024
1 parent 2193726 commit 2a7cef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions investments/data_providers/moex.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ async def async_get_board_candles(ticker: Ticker, cache_dir: Optional[str], star
for x in resp:
if x['secid'] != ticker.symbol:
continue
engine, market = x['group'].split('_')
board = x['primary_boardid']
engine, market = str(x['group']).split('_')
board = str(x['primary_boardid'])

if engine == '':
raise Exception(f'unknown ticker {ticker}')
Expand Down
2 changes: 1 addition & 1 deletion investments/ibtax/report_presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def apply_round_for_dataframe(source: pandas.DataFrame, columns: Iterable, digits: int = 2) -> pandas.DataFrame:
source[list(columns)] = source[list(columns)].applymap(
source[list(columns)] = source[list(columns)].map(
lambda x: x.round(digits=digits) if isinstance(x, Money) else round(x, digits),
)
return source
Expand Down

0 comments on commit 2a7cef2

Please sign in to comment.