Bugfix for moved history.toml

This commit is contained in:
Neshura 2023-12-30 00:53:00 +01:00
parent 9c15ea791f
commit 0f1de67db6
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 8 additions and 5 deletions

View file

@ -17,10 +17,10 @@ impl SeriesHistory {
let config_dir = path.parent().expect("Something went wrong with confy");
match Path::new(format!("{}/history.toml", config_dir.to_str().expect("Conversion to str should not fail for a dir")).as_str()).exists() {
let path = format!("{}/history.toml", config_dir.to_str().expect("Conversion to str should not fail for a dir"));
match Path::new(path.as_str()).exists() {
true => {
let file_contents: String = match fs::read_to_string("history.toml") {
let file_contents: String = match fs::read_to_string(path.as_str()) {
Ok(data) => data,
Err(e) => {
let err_msg = format!("{e}");