hammond-data::utils: Modified EpisodeCleaner Diesel model to also be used with played_cleaner.

This commit is contained in:
Jordan Petridis
2017-12-20 19:18:20 +02:00
parent 3c24b9f9d9
commit db59bed69d
4 changed files with 52 additions and 27 deletions
+3 -1
View File
@@ -232,7 +232,9 @@ fn on_play_bttn_clicked(episode_id: i32) {
}
fn on_delete_bttn_clicked(episode_id: i32) {
let mut ep = dbqueries::get_episode_from_rowid(episode_id).unwrap();
let mut ep = dbqueries::get_episode_from_rowid(episode_id)
.unwrap()
.into();
let e = delete_local_content(&mut ep);
if let Err(err) = e {