Skip to content

Commit

Permalink
ui: fixed searching in tab Users
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya committed Dec 20, 2024
1 parent ef39788 commit 332ec0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/opensnitch/dialogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1955,8 +1955,11 @@ def _get_filter_line_clause(self, idx, text):

if idx == StatsDialog.TAB_RULES:
return " WHERE rules.name LIKE '%{0}%' OR rules.operator_data LIKE '%{1}%' ".format(text, text)
elif idx == StatsDialog.TAB_HOSTS or idx == StatsDialog.TAB_PROCS or \
idx == StatsDialog.TAB_ADDRS or idx == StatsDialog.TAB_PORTS:
elif idx == StatsDialog.TAB_HOSTS or \
idx == StatsDialog.TAB_PROCS or \
idx == StatsDialog.TAB_ADDRS or \
idx == StatsDialog.TAB_PORTS or \
idx == StatsDialog.TAB_USERS:
return " WHERE what LIKE '%{0}%' ".format(text)

return ""
Expand Down

0 comments on commit 332ec0f

Please sign in to comment.