Bugfix Release 2.0.2
This commit is contained in:
parent
b10455a30f
commit
bba7fae8b9
3 changed files with 9 additions and 4 deletions
src/bot
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue