Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: minor docstring fix
  • Loading branch information
ErikBjare committed Jun 3, 2021
1 parent 5bd84b1 commit 5864398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aw_core/log.py
Expand Up @@ -63,7 +63,7 @@ def _get_latest_log_files(name, testing=False) -> List[str]: # pragma: no cover

def get_latest_log_file(name, testing=False) -> Optional[str]: # pragma: no cover
"""
Returns the filename of the last logfile with `name`.
Returns the filename of the last logfile with ``name``.
Useful when you want to read the logfile of another ActivityWatch service.
"""
last_logs = _get_latest_log_files(name, testing=testing)
Expand Down
4 changes: 2 additions & 2 deletions aw_transform/sort_by.py
@@ -1,5 +1,5 @@
import logging
from datetime import datetime, timedelta
from datetime import timedelta
from typing import List
from aw_core.models import Event

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


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


Expand Down

0 comments on commit 5864398

Please sign in to comment.