Skip to content

Using floats as interval breaks habitctl #29

@AiyionPrime

Description

@AiyionPrime

Not only does habitctl not list the habits anymore, but fixing the mistake through habitctl edith is also not possible due to the same error:

$ habitctl edith
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }', src/main.rs:267:54
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To reproduces the issue add a habit with a float interval, e.g.:
3.5 checkout open source projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions