mirror of
https://github.com/quitesimpleorg/hs9001.git
synced 2025-07-19 18:14:56 +02:00
Compare commits
5 Commits
v0.4
...
97648433c0
Author | SHA1 | Date | |
---|---|---|---|
97648433c0 | |||
2450accc96 | |||
e5c1beb937 | |||
a2c4c99af4 | |||
e292b4ce74 |
@ -12,10 +12,6 @@ type history struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
|
func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
|
||||||
/* Hack for performance reasons */
|
|
||||||
if len(prefix) < 2 {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
opts := searchopts{}
|
opts := searchopts{}
|
||||||
opts.order = "DESC"
|
opts.order = "DESC"
|
||||||
cmdqry := prefix + "%"
|
cmdqry := prefix + "%"
|
||||||
@ -31,10 +27,6 @@ func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (h *history) GetHistoryByPattern(pattern string) (ph []string, pos []int) {
|
func (h *history) GetHistoryByPattern(pattern string) (ph []string, pos []int) {
|
||||||
/* Hack for performance reasons */
|
|
||||||
if len(pattern) < 2 {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
opts := searchopts{}
|
opts := searchopts{}
|
||||||
opts.order = "DESC"
|
opts.order = "DESC"
|
||||||
cmdqry := "%" + pattern + "%"
|
cmdqry := "%" + pattern + "%"
|
||||||
|
Reference in New Issue
Block a user