fmt
All checks were successful
CI / Check / Test (push) Successful in 15m57s

This commit is contained in:
2026-06-09 02:31:02 +02:00
parent 70b3ca0f5c
commit 05d062f4e0
3 changed files with 28 additions and 26 deletions

View File

@@ -1,4 +1,7 @@
use super::{movie::Movie, review::{DiaryEntry, Review}}; use super::{
movie::Movie,
review::{DiaryEntry, Review},
};
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct FeedEntry { pub struct FeedEntry {

View File

@@ -1,40 +1,40 @@
mod movie;
mod review;
mod user;
mod stats;
mod enrichment; mod enrichment;
mod feed; mod feed;
mod movie;
mod review;
mod stats;
mod user;
pub mod collections; pub mod collections;
pub mod goal;
pub mod import; pub mod import;
pub mod import_profile; pub mod import_profile;
pub mod import_session; pub mod import_session;
pub mod person; pub mod person;
pub mod search;
pub mod watchlist;
pub mod remote_watchlist;
pub mod goal;
pub mod user_settings;
pub mod remote_goal; pub mod remote_goal;
pub mod remote_watchlist;
pub mod search;
pub mod user_settings;
pub mod watch_event; pub mod watch_event;
pub mod watchlist;
pub mod wrapup; pub mod wrapup;
pub use movie::*;
pub use review::*;
pub use user::*;
pub use stats::*;
pub use enrichment::*; pub use enrichment::*;
pub use feed::*; pub use feed::*;
pub use movie::*;
pub use review::*;
pub use stats::*;
pub use user::*;
pub use watchlist::{WatchlistEntry, WatchlistWithMovie};
pub use remote_watchlist::RemoteWatchlistEntry;
pub use goal::{Goal, GoalWithProgress}; pub use goal::{Goal, GoalWithProgress};
pub use user_settings::UserSettings;
pub use remote_goal::RemoteGoalEntry; pub use remote_goal::RemoteGoalEntry;
pub use remote_watchlist::RemoteWatchlistEntry;
pub use user_settings::UserSettings;
pub use watch_event::{ pub use watch_event::{
ParsedPlaybackEvent, PersistedWatchEvent, WatchEvent, WatchEventSource, WatchEventStatus, ParsedPlaybackEvent, PersistedWatchEvent, WatchEvent, WatchEventSource, WatchEventStatus,
WebhookToken, WebhookToken,
}; };
pub use watchlist::{WatchlistEntry, WatchlistWithMovie};
pub use wrapup::*; pub use wrapup::*;
pub use import::{ pub use import::{

View File

@@ -63,8 +63,12 @@ pub async fn get_profile(
username: profile.username, username: profile.username,
display_name: profile.display_name, display_name: profile.display_name,
bio: profile.bio, bio: profile.bio,
avatar_url: profile.avatar_path.map(|p| format!("{}/images/{}", base_url, p)), avatar_url: profile
banner_url: profile.banner_path.map(|p| format!("{}/images/{}", base_url, p)), .avatar_path
.map(|p| format!("{}/images/{}", base_url, p)),
banner_url: profile
.banner_path
.map(|p| format!("{}/images/{}", base_url, p)),
also_known_as: profile.also_known_as, also_known_as: profile.also_known_as,
fields: profile fields: profile
.fields .fields
@@ -543,13 +547,8 @@ pub async fn get_user_profile_html(
.most_active_month .most_active_month
.clone() .clone()
.unwrap_or_else(|| "\u{2014}".to_string()); .unwrap_or_else(|| "\u{2014}".to_string());
let history = profile let history = profile.history.map(crate::mappers::users::group_by_month);
.history let heatmap = history.as_deref().map(build_heatmap).unwrap_or_default();
.map(crate::mappers::users::group_by_month);
let heatmap = history
.as_deref()
.map(build_heatmap)
.unwrap_or_default();
let monthly_rating_rows: Vec<MonthlyRatingRow<'_>> = profile let monthly_rating_rows: Vec<MonthlyRatingRow<'_>> = profile
.trends .trends
.as_ref() .as_ref()