Bugfix Release 2.0.2
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s
Build and Release Binary File / run-tests (push) Successful in 2s
Build and Release Binary File / build (push) Successful in 1m3s
Build and Release Binary File / upload-release (push) Successful in 8s

This commit is contained in:
Neshura 2023-12-17 20:57:03 +01:00
parent b10455a30f
commit bba7fae8b9
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 9 additions and 4 deletions

2
Cargo.lock generated
View file

@ -281,7 +281,7 @@ dependencies = [
[[package]]
name = "ascendance-of-a-bookworm-bot"
version = "2.0.1"
version = "2.0.2"
dependencies = [
"chrono",
"confy",

View file

@ -1,6 +1,6 @@
[package]
name = "ascendance-of-a-bookworm-bot"
version = "2.0.1"
version = "2.0.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -21,7 +21,7 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>){
let mut last_reload: DateTime<Utc>;
let mut lemmy: Lemmy;
let mut login_error: bool;
let mut communities = HashMap::new();
let mut communities;
{
let mut shared_data = data.write().await;
@ -38,6 +38,11 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>){
Err(e) => panic!("{}", e),
};
login_error = false;
communities = match lemmy.get_communities().await {
Ok(data) => data,
Err(e) => panic!("{}", e),
};
}
while Utc::now().naive_local().second() != 30 {
@ -209,7 +214,7 @@ async fn handle_series<'a>(
series_history.set_part(post_part_info.as_string().as_str(), part_history);
data.post_history.set_series(series.slug.as_str(), series_history);
let _ = data.post_history.save_history();
let _ = data.post_history.save_history()?;
}
Ok(())
}