The underlying Rust code needs to be enhanced to query the SQL table with SELECT site_aggregates WHERE site_id = 1, hard-coded 1 is fine, that is always the local site in Lemmy.
Can you please detail all the code changes so that the read method takes an integer parameter for site_id field?
site_aggregates::table.filter(site_aggregates::site_id.eq(1)).first::<Self>(conn).await
^^ `schema::site_aggregates::columns::site_id` is not an iterator