Skip to content

Commit

Permalink
Merge pull request #49 from danstis/Sort-selected-shows-on-Home-page
Browse files Browse the repository at this point in the history
Sort selected shows list, Closes #48
  • Loading branch information
danstis authored Oct 14, 2017
2 parents c2f84cf + cf420e4 commit c8b8b1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.3.1]
### Fixed
- Sort selected shows on Home page.

## [v0.3.0]
### Added
- Show selected shows on home page.
Expand Down
3 changes: 2 additions & 1 deletion plex/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"net/http"
"net/url"
"os"
"sort"
)

// Host defines the data to be stored for server objects
Expand Down Expand Up @@ -165,7 +166,7 @@ func SelectedShows() ([]string, error) {
for scanner.Scan() {
lines = append(lines, scanner.Text())
}

sort.Strings(lines)
return lines, scanner.Err()
}

Expand Down
2 changes: 1 addition & 1 deletion plex/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package plex

// Version contains the version of the app.
const Version = "0.3.0"
const Version = "0.3.1"

0 comments on commit c8b8b1d

Please sign in to comment.