-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from thesis/fix-schedule-sorting-bug
Fix schedule sorting bug and clean up a couple things This fixes a bug in sorting datetime jobs for reminder list and schedule list commands. The bug was introduced when refactoring the schedule script to pull some functionality out into a lib module. Previously, the job get, sort, and format steps were all done within one function; the sort was performed on the job object's keys array, and the string formatting happened on that array. When these steps were broken out into separate functions, the sorted jobs were returned as an object, then passed to the string formatter, but because objects are inherently unordered this broke the sorting. This changes the sort function's return type to an array and updates the string formatting function to handle the change. This PR also sweeps up a couple of crumbs leftover from previous PRs.
- Loading branch information
Showing
3 changed files
with
18 additions
and
51 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
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
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