diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-08-10 17:37:08 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-08-10 17:37:08 +0200 |
commit | dcfe66e4d409a2b89b93be2ead8a7a84ab863dc0 (patch) | |
tree | c1f2080ee69816201ea7794210b89e22386679d9 /src/controllers | |
parent | a442bf15b58ca640bd28e7595804c5b270c316ed (diff) | |
download | ramaskrik-social-dcfe66e4d409a2b89b93be2ead8a7a84ab863dc0.tar.gz ramaskrik-social-dcfe66e4d409a2b89b93be2ead8a7a84ab863dc0.tar.bz2 ramaskrik-social-dcfe66e4d409a2b89b93be2ead8a7a84ab863dc0.zip |
Rename Screening model to AggregateScreening
Diffstat (limited to 'src/controllers')
-rw-r--r-- | src/controllers/screening.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/screening.rs b/src/controllers/screening.rs index a26720e..5052075 100644 --- a/src/controllers/screening.rs +++ b/src/controllers/screening.rs @@ -18,7 +18,7 @@ use crate::{ db, - models::{Screening}, + models::AggregatedScreening, }; use rocket::get; @@ -27,6 +27,6 @@ use rocket_contrib::{ }; #[get("/")] -pub fn get_screenings(db: db::Connection) -> Json<Vec<Screening>> { - Json(db.get_screenings().unwrap()) +pub fn get_aggregated_screenings(db: db::Connection) -> Json<Vec<AggregatedScreening>> { + Json(db.get_aggregated_screenings().unwrap()) } |