zrcadlo
https://github.com/quitesimpleorg/hs9001.git
synchronizováno 2026-02-04 09:30:30 +01:00
Porovnat revize
2 Commity
v0.4
...
6e4ed9a1cd
| Autor | SHA1 | Datum | |
|---|---|---|---|
|
|
6e4ed9a1cd | ||
| 26ababc93e |
@@ -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 + "%"
|
||||||
|
|||||||
Odkázat v novém úkolu
Zablokovat Uživatele