Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
proper pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Mar 5, 2024
1 parent eca7cd4 commit ff28366
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fetch/orderbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def get_order_rewards(cls, block_range: BlockRange) -> DataFrame:
assert set(prod.solver).isdisjoint(set(barn.solver)), "solver overlap!"
if not prod.empty and not barn.empty:
return pd.concat([prod, barn])
elif not prod.empty:
if not prod.empty:
return prod.copy()
elif not barn.empty:
if not barn.empty:
return barn.copy()
return pd.DataFrame()

Expand Down Expand Up @@ -124,8 +124,8 @@ def get_batch_rewards(cls, block_range: BlockRange) -> DataFrame:
assert set(prod.solver).isdisjoint(set(barn.solver)), "solver overlap!"
if not prod.empty and not barn.empty:
return pd.concat([prod, barn])
elif not prod.empty:
if not prod.empty:
return prod.copy()
elif not barn.empty:
if not barn.empty:
return barn.copy()
return pd.DataFrame()

0 comments on commit ff28366

Please sign in to comment.