~azzamsa/bilal.rs

37d6f21717a531ce2e7c6b8a636234f7b7a25235 — azzamsa 7 months ago 44c107a
fix: state must be present
1 files changed, 2 insertions(+), 2 deletions(-)

M src/output.rs
M src/output.rs => src/output.rs +2 -2
@@ 68,7 68,7 @@ impl Printer {
            if minute < 30 {
                "Critical"
            } else {
                ""
                "Info"
            }
        };



@@ 96,7 96,7 @@ impl Printer {
        // default
        let mut prayer_fmt = format!("\u{25b6} {} {}", prayer.name(), time_fmt);
        // JSON
        let state = "";
        let state = "Info";
        if self.json_format {
            prayer_fmt = format!(r#"{{"state":"{}", "text": "{}"}}"#, state, prayer_fmt)
        }