Skip to content

Commit

Permalink
fix: make cleaner _history
Browse files Browse the repository at this point in the history
  • Loading branch information
eelucio committed May 28, 2024
1 parent 1429a15 commit 1224660
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/freva/_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ def history(
f"{prefix}, limit={limit}, since={since},"
f" until={until}, entry_ids={entry_ids}"
)
kwargs = {
"user": None if user == "all" or user == "*" else User(user),
"plugin_name": plugin,
"limit": limit,
"since": since,
"until": until,
"entry_ids": entry_ids,
}
rows = pm.get_history(**kwargs)

rows = pm.get_history(
user=None if user == "all" or user == "*" else User(user),
plugin_name=plugin,
limit=limit,
since=since,
until=until,
entry_ids=entry_ids,
)

if rows:
# pass some option for generating the command string
Expand Down

0 comments on commit 1224660

Please sign in to comment.