Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implemented Iterator Behavioral Design Pattern for the for loop in the file temporary_cron.py. This loop originally iterates through a list of query / command to execute.
By implementing this pattern here, instead of using a for loop to iterate over a list of queries, i used the iterator pattern to iterate the queries in the list one by one by using the pattern method has_next(). By using this pattern here, this pattern can also be used anywhere else in the code base that deals with executing a list of queries / commands
Since this the code base deals heavily in manipulating information in databases, this pattern can be used many times in the code base where the action is to execute a list of commands therefore also making it easier to implement in the future when more databases are added in.