Bugfix Release 2.0.2
All checks were successful
All checks were successful
This commit is contained in:
parent
b10455a30f
commit
bba7fae8b9
3 changed files with 9 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -281,7 +281,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ascendance-of-a-bookworm-bot"
|
name = "ascendance-of-a-bookworm-bot"
|
||||||
version = "2.0.1"
|
version = "2.0.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"confy",
|
"confy",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ascendance-of-a-bookworm-bot"
|
name = "ascendance-of-a-bookworm-bot"
|
||||||
version = "2.0.1"
|
version = "2.0.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -21,7 +21,7 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>){
|
||||||
let mut last_reload: DateTime<Utc>;
|
let mut last_reload: DateTime<Utc>;
|
||||||
let mut lemmy: Lemmy;
|
let mut lemmy: Lemmy;
|
||||||
let mut login_error: bool;
|
let mut login_error: bool;
|
||||||
let mut communities = HashMap::new();
|
let mut communities;
|
||||||
{
|
{
|
||||||
let mut shared_data = data.write().await;
|
let mut shared_data = data.write().await;
|
||||||
|
|
||||||
|
@ -38,6 +38,11 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>){
|
||||||
Err(e) => panic!("{}", e),
|
Err(e) => panic!("{}", e),
|
||||||
};
|
};
|
||||||
login_error = false;
|
login_error = false;
|
||||||
|
|
||||||
|
communities = match lemmy.get_communities().await {
|
||||||
|
Ok(data) => data,
|
||||||
|
Err(e) => panic!("{}", e),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
while Utc::now().naive_local().second() != 30 {
|
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);
|
series_history.set_part(post_part_info.as_string().as_str(), part_history);
|
||||||
data.post_history.set_series(series.slug.as_str(), series_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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue