mirror of
https://github.com/Xevion/banner.git
synced 2025-12-08 08:06:30 -06:00
Finish proper term archival check func
This commit is contained in:
5
api.go
5
api.go
@@ -24,6 +24,11 @@ type Pair struct {
|
||||
type BannerTerm Pair
|
||||
type Instructor Pair
|
||||
|
||||
// Archived returns true if the term is in it's archival state (view only)
|
||||
func (term BannerTerm) Archived() bool {
|
||||
return strings.Contains(term.Description, "View Only")
|
||||
}
|
||||
|
||||
// GetTerms retrieves and parses the term information for a given search term.
|
||||
// Ensure that the offset is greater than 0.
|
||||
func GetTerms(search string, offset int, max int) ([]BannerTerm, error) {
|
||||
|
||||
Reference in New Issue
Block a user