Updated and created were appended with _unix. Fresh databases have only the newly named fields.

This commit is contained in:
Marin Jankovski 2016-03-11 12:43:35 +01:00
parent 5267dce210
commit 1314ba219e
6 changed files with 11 additions and 10 deletions

View file

@ -495,11 +495,11 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
switch opts.SortType {
case "oldest":
sess.Asc("created")
sess.Asc("created_unix")
case "recentupdate":
sess.Desc("updated")
sess.Desc("updated_unix")
case "leastupdate":
sess.Asc("updated")
sess.Asc("updated_unix")
case "mostcomment":
sess.Desc("num_comments")
case "leastcomment":
@ -507,7 +507,7 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
case "priority":
sess.Desc("priority")
default:
sess.Desc("created")
sess.Desc("created_unix")
}
labelIDs := base.StringsToInt64s(strings.Split(opts.Labels, ","))