Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update select query in get_withdraw_links #52

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

jimasuen
Copy link
Contributor

@jimasuen jimasuen commented Sep 16, 2024

Bug: The api_links function in views_api.py was returning an empty value for the data key despite returning the correct total value.

Solution: Adding the LIMIT and OFFSET parameters to the select query in get_withdraw_links only when the limit is greater than 0 solves this issue.

@dni
Copy link
Member

dni commented Nov 28, 2024

can you verify thats still the case for v1?

@jimasuen
Copy link
Contributor Author

can you verify thats still the case for v1?

It's still the same issue with v1.

@dni
Copy link
Member

dni commented Nov 28, 2024

can you resolve the conflict?

@jimasuen
Copy link
Contributor Author

can you resolve the conflict?

working on it

@jimasuen
Copy link
Contributor Author

can you resolve the conflict?

Conflicts resolved

@dni dni requested a review from motorina0 November 28, 2024 21:38
@dni
Copy link
Member

dni commented Nov 28, 2024

LGTM

@dni
Copy link
Member

dni commented Nov 29, 2024

formatting seems to fail

@jimasuen
Copy link
Contributor Author

formatting seems to fail

reformatted the code

@motorina0 motorina0 merged commit f05169f into lnbits:main Nov 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants