Skip to content

Commit

Permalink
Merge branch 'firmegan'
Browse files Browse the repository at this point in the history
  • Loading branch information
awwpotato committed Oct 16, 2024
2 parents a34be92 + c728a69 commit e576d2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 8 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ use std::env;
use tba_openapi_rust::apis::configuration::{ApiKey, Configuration};
use tower_http::services::ServeFile;

use hensight::{
get_event_predictions, get_event_rankings, get_pulse_data, get_slide, get_statbotics_data,
SlideData,
mod model;
mod query;

use crate::{
model::SlideData,
query::{
get_event_predictions, get_event_rankings, get_pulse_data, get_slide, get_statbotics_data,
},
};

#[tokio::main]
Expand Down
7 changes: 3 additions & 4 deletions src/lib.rs → src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
// SPDX-FileCopyrightText: 2024 Finnegan Dion-Kuhn

use chrono::{Datelike, Local, TimeZone};
use model::PulseData;
use rand::{seq::SliceRandom, thread_rng};
use tba_openapi_rust::{
apis::{configuration::Configuration, event_api},
models::event_ranking_rankings_inner::EventRankingRankingsInner,
};

mod model;

pub use model::{NexusEventStatus, NexusMatch, SlideData, StatboticsReturn, StatboticsTeamYear};
pub use crate::model::{
NexusEventStatus, NexusMatch, PulseData, SlideData, StatboticsReturn, StatboticsTeamYear,
};

pub fn get_slide<'a>(
slides: &'a Vec<impl Fn(&SlideData) -> Option<&'a str>>,
Expand Down

0 comments on commit e576d2a

Please sign in to comment.