mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-23 16:58:27 +01:00
history search bugfixes
This commit is contained in:
parent
56b74f35f3
commit
7516f880ae
@ -1887,7 +1887,9 @@ func HistoryViewAllCommand(ctx context.Context, pk *scpacket.FeCommandPacketType
|
||||
opts.FromTs = int64(fromTs)
|
||||
}
|
||||
}
|
||||
opts.NoMeta = resolveBool(pk.Kwargs["meta"], false)
|
||||
if pk.Kwargs["meta"] != "" {
|
||||
opts.NoMeta = !resolveBool(pk.Kwargs["meta"], true)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("invalid meta arg (must be boolean): %v", err)
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ func runHistoryQuery(tx *TxWrap, opts HistoryQueryOpts) ([]*HistoryItemType, err
|
||||
queryArgs = append(queryArgs, "%"+likeArg+"%")
|
||||
}
|
||||
if opts.FromTs > 0 {
|
||||
whereClause += fmt.Sprintf(" AND ts > %d", opts.FromTs)
|
||||
whereClause += fmt.Sprintf(" AND ts <= %d", opts.FromTs)
|
||||
}
|
||||
if opts.RemoteId != "" {
|
||||
whereClause += fmt.Sprintf(" AND remoteid = '%s'", opts.RemoteId)
|
||||
|
Loading…
Reference in New Issue
Block a user