Skip to content

Commit

Permalink
More on sincle check from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
George V. Kouryachy (Fr. Br. George) committed Oct 23, 2023
1 parent 92a0a1e commit 3d15816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hworker/control/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ def complete_check(self, text, line, begidx, endidx):
ids = [sol.ID for sol in depot.search(depot.objects.Solution, actual=True)]
match args:
case []:
return self.filtertext(ids + const, text)
return self.filtertext(ids + const, word, shift=delta, quote=quote)

def do_logging(self, arg):
"""Set console log level"""
objnames = logging.getLevelNamesMapping()
logger = logging.getLogger()
handler = [hand for hand in logger.handlers if isinstance(hand, logging.StreamHandler)][0]
handler = [hand for hand in logger.handlers if type(hand) is logging.StreamHandler][0]
if arg:
if arg in objnames:
handler.setLevel(arg)
Expand Down

0 comments on commit 3d15816

Please sign in to comment.