Skip to content

Commit

Permalink
Fix log api
Browse files Browse the repository at this point in the history
  • Loading branch information
h3llrais3r committed May 16, 2023
1 parent 2feec2c commit 44176f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autosubliminal/server/api/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self) -> None:

def get(self, lognum: str = None) -> List[str]:
"""Get the log lines for a logfile."""
return get_log_lines(loglevel='all', lines=1000, lognum=int(lognum))
return get_log_lines(loglevel='all', lines=1000, lognum=int(lognum) if lognum else None)

def delete(self, lognum: str = None) -> None:
"""Delete the logs for a logfile."""
Expand Down

0 comments on commit 44176f1

Please sign in to comment.