Skip to content

Commit

Permalink
fix bug in overdue locked
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Nov 5, 2024
1 parent 1193e0c commit d9fdf2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ a Python file and may contain the following settings:
default_max_age (hours)
dumper (email address -- mail is sent from this person)
root (default directory for repositories)
status_message (a template for the message to be printed for each repository)
repositories (string or array of dictionaries)
Here is an example config file:
Expand Down Expand Up @@ -151,7 +152,7 @@ There are some additional settings available:
*colorscheme*:
The color scheme of your terminal. May be "dark" or "light" or None. If
None, the output is not colored.
*message*:
*status_message*:
The format of the summary for each host. The string may contain keys within
braces that will be replaced before output. The following keys are
supported:
Expand Down
2 changes: 1 addition & 1 deletion emborg/overdue.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_local_data(path, host, max_age):
if len(paths) > 1:
raise Error("too many sentinel files.", *paths, sep="\n ")
path = paths[0]
locked = path.glob('lock.*')
locked = list(path.glob('lock.*'))
mtime = arrow.get(path.stat().st_mtime)
if path.suffix == '.nt':
latest = read_latest(path)
Expand Down

0 comments on commit d9fdf2a

Please sign in to comment.