Skip to content

Commit

Permalink
fix: paperID should not be sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
kkweon committed Jun 28, 2021
1 parent 70fadf7 commit c1c4c27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dbctl/internal/transform/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"fmt"
"regexp"
"sort"
"strconv"
"strings"

Expand Down Expand Up @@ -127,10 +126,11 @@ func ExtractPaperIDsViaProgrammableSearch(title, cx, apiKey string, limiter *rat
log.WithError(err).Warn("failed to parse arxiv ID")
continue
}
paperIDs = append(paperIDs, arxivID)
}

sort.Strings(paperIDs)
if arxivID != "" {
paperIDs = append(paperIDs, arxivID)
}
}

return paperIDs, nil
}
Expand Down

0 comments on commit c1c4c27

Please sign in to comment.