Skip to content

Commit 5864398

Browse files
committed
docs: minor docstring fix
1 parent 5bd84b1 commit 5864398

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aw_core/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _get_latest_log_files(name, testing=False) -> List[str]: # pragma: no cover
6363

6464
def get_latest_log_file(name, testing=False) -> Optional[str]: # pragma: no cover
6565
"""
66-
Returns the filename of the last logfile with `name`.
66+
Returns the filename of the last logfile with ``name``.
6767
Useful when you want to read the logfile of another ActivityWatch service.
6868
"""
6969
last_logs = _get_latest_log_files(name, testing=testing)

aw_transform/sort_by.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from datetime import datetime, timedelta
2+
from datetime import timedelta
33
from typing import List
44
from aw_core.models import Event
55

@@ -17,7 +17,7 @@ def sort_by_duration(events) -> List[Event]:
1717

1818

1919
def limit_events(events, count) -> List[Event]:
20-
"""Returns the `count` first events in the list of events"""
20+
"""Returns the ``count`` first events in the list of events"""
2121
return events[:count]
2222

2323

0 commit comments

Comments
 (0)