Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
vkostyanetsky committed Aug 18, 2023
1 parent 47702ca commit af5e02e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 7 additions & 1 deletion fastimer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
import click

from fastimer import constants
from fastimer.commands import command_cancel, command_show, command_start, command_stop, command_info
from fastimer.commands import (
command_cancel,
command_info,
command_show,
command_start,
command_stop,
)


def __get_path(path: str | None) -> str:
Expand Down
7 changes: 3 additions & 4 deletions fastimer/commands/command_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

"""Implementation of a command to output fasting statistics."""

import click

from fastimer import datafile
import datetime
import typing

from fastimer import utils
import click

from fastimer import datafile, utils


def main(path: str) -> None:
Expand Down
2 changes: 0 additions & 2 deletions fastimer/commands/command_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def main(path: str, what: str, date: str) -> None:
fasts = datafile.read_fasts(path)

if fasts:

if what == "last":
__show_last(fasts)
elif what == "prev":
Expand All @@ -32,7 +31,6 @@ def __show_last(fasts) -> None:


def __show_prev(fasts) -> None:

if len(fasts) >= 2:
utils.print_fast(fasts[-2])
else:
Expand Down

0 comments on commit af5e02e

Please sign in to comment.