Skip to content

Commit

Permalink
fix db lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Jan 5, 2024
1 parent 830b971 commit 32461b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
os: [ubuntu-latest]
python-version: ["3.10"]
poetry-version: ["1.7.1"]
mint-cache-secrets: ["true", "false"]
mint-only-deprecated: ["true", "false"]
mint-cache-secrets: ["false", "true"]
mint-only-deprecated: ["false", "true"]
# db-url: ["", "postgres://cashu:cashu@localhost:5432/test"] # TODO: Postgres test not working
db-url: [""]
backend-wallet-class: ["FakeWallet"]
Expand Down
3 changes: 2 additions & 1 deletion cashu/mint/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def get_spent_proofs(

async def get_proof_used(
self,
*,
db: Database,
secret: str,
conn: Optional[Connection] = None,
Expand Down Expand Up @@ -583,7 +584,7 @@ async def get_proof_used(
) -> Optional[Proof]:
row = await (conn or db).fetchone(
f"""
SELECT 1 from {table_with_schema(db, 'proofs_used')}
SELECT * from {table_with_schema(db, 'proofs_used')}
WHERE secret = ?
""",
(secret,),
Expand Down

0 comments on commit 32461b7

Please sign in to comment.