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

refactor: ♻️ reuse of select method in FastCRUD #55

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

dubusster
Copy link
Contributor

@dubusster dubusster commented Apr 16, 2024

Description

This PR is a small refactor of #28, it makes use of select method across FastCRUD class to avoid code duplication.

Changes

fast_crud.py : get, get_multi and get_multi_by_cursor

Tests

No tests added, it passes all current ones

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • All new and existing tests passed.

@dubusster dubusster marked this pull request as ready for review April 16, 2024 10:20
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (31a2066) to head (c940891).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #55   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           64        64           
  Lines         4166      4156   -10     
=========================================
- Hits          4166      4156   -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@JakNowy JakNowy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing #28 , looks very nice and clean to me!

@igorbenav
Copy link
Owner

Nice one, thanks!

@igorbenav igorbenav self-assigned this Apr 18, 2024
@igorbenav igorbenav added enhancement New feature or request FastCRUD Methods Related to FastCRUD methods labels Apr 18, 2024
@igorbenav igorbenav merged commit a4a7d3f into igorbenav:main Apr 18, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FastCRUD Methods Related to FastCRUD methods
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants