Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Feb 25, 2025
1 parent 4d9c021 commit 3b85a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/api/apiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def run_apiserver(
):
logger.info("Starting API Server process...")

def handle_interrupt_signal(signum, frame):
def handle_interrupt_signal(_signum, _frame):
pass

Check warning on line 499 in counterparty-core/counterpartycore/lib/api/apiserver.py

View check run for this annotation

Codecov / codecov/patch

counterparty-core/counterpartycore/lib/api/apiserver.py#L499

Added line #L499 was not covered by tests

wsgi_server = None
Expand Down
8 changes: 4 additions & 4 deletions counterparty-core/counterpartycore/lib/api/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def select_rows(

if table == "all_transactions":
for row in result:
row["confirmed"] = True if row["confirmed"] == 1 else False
row["confirmed"] = bool(row["confirmed"])

return QueryResult(result, next_cursor, table, result_count)

Expand Down Expand Up @@ -441,7 +441,7 @@ def get_transactions(
def get_transactions_by_block(
ledger_db,
block_index: int,
type: TransactionType = "all",
type: TransactionType = "all", # pylint: disable=W0622
show_unconfirmed: bool = False,
cursor: str = None,
limit: int = 10,
Expand Down Expand Up @@ -472,7 +472,7 @@ def get_transactions_by_block(
def get_transactions_by_address(
ledger_db,
address: str,
type: TransactionType = "all",
type: TransactionType = "all", # pylint: disable=W0622
show_unconfirmed: bool = False,
cursor: str = None,
limit: int = 10,
Expand Down Expand Up @@ -503,7 +503,7 @@ def get_transactions_by_address(
def get_transactions_by_addresses(
ledger_db,
addresses: str,
type: TransactionType = "all",
type: TransactionType = "all", # pylint: disable=W0622
show_unconfirmed: bool = False,
cursor: str = None,
limit: int = 100,
Expand Down

0 comments on commit 3b85a75

Please sign in to comment.