-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get_job_records(): improve function logic
Problem: There are a few improvements that can be made to enhance readability, efficiency, and maintainability of this function. Simplify the construction of the params dictionary. Use f-strings for string formatting of the SELECT statement and WHERE clauses. Remove the unnecessary check for len(result) == 0 since we can just return an empty list if no records are found.
- Loading branch information
Showing
1 changed file
with
18 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters