Improve comment on special handling

This commit is contained in:
Matthias 2023-09-25 19:46:27 +02:00
parent a2d8f92e05
commit 9e6cc5ebbd

View File

@ -41,12 +41,12 @@ def import_kraken_trades_from_csv(config: Config, convert_to: str):
dfs = [] dfs = []
# Load and combine all csv files for this pair # Load and combine all csv files for this pair
for f in tradesdir.rglob(f"{name}.csv"): for f in tradesdir.rglob(f"{name}.csv"):
# print(pair, f)
df = pd.read_csv(f, names=KRAKEN_CSV_TRADE_COLUMNS) df = pd.read_csv(f, names=KRAKEN_CSV_TRADE_COLUMNS)
dfs.append(df) dfs.append(df)
# Load existing trades data # Load existing trades data
if not dfs: if not dfs:
# edgecase, can only happen if the file was deleted between the above glob and here
logger.info(f"No data found for pair {pair}") logger.info(f"No data found for pair {pair}")
continue continue