cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.85k stars 178 forks source link

Fix #130 by using defult values `0` when table is empty. #132

Closed akinnane closed 3 years ago

akinnane commented 3 years ago

Wrapping the aggregate functions with IFNULL allows query_row to return successfully preventing the unwrap error from rusqlite. 0 might not be the best default value but it seems to work.

cantino commented 3 years ago

Thanks!