diff options
Diffstat (limited to 'pkg/models/userpreferences.go')
-rw-r--r-- | pkg/models/userpreferences.go | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/pkg/models/userpreferences.go b/pkg/models/userpreferences.go index 773b8eb..5426659 100644 --- a/pkg/models/userpreferences.go +++ b/pkg/models/userpreferences.go @@ -1,26 +1,5 @@ -// Contains the model of a package version - package models -type UserPreferences struct { - Maintainers MaintainersPreferences -} - -type MaintainersPreferences struct { - IncludeProjectPackages bool - ExcludedProjects []string -} - var ArchesToShow = [...]string{"amd64", "x86", "alpha", "arm", "arm64", "hppa", "ia64", "ppc", "ppc64", "riscv", "sparc"} var AllArches = [...]string{"alpha", "amd64", "arm", "arm64", "hppa", "ia64", "mips", "ppc", "ppc64", "riscv", "s390", "sparc", "x86"} -var OldCookieNames = [...]string{"search_history", "userpref_general", "userpref_packages", "userpref_useflags", "userpref_arches"} - -func GetDefaultUserPreferences() UserPreferences { - userPreferences := UserPreferences{} - userPreferences.Maintainers = MaintainersPreferences{} - - userPreferences.Maintainers.IncludeProjectPackages = false - userPreferences.Maintainers.ExcludedProjects = []string{} - - return userPreferences -} +var OldCookieNames = [...]string{"search_history", "userpref_general", "userpref_packages", "userpref_maintainers", "userpref_useflags", "userpref_arches"} |