diff --git a/TBAData.py b/TBAData.py index 60583aa..43cbd43 100644 --- a/TBAData.py +++ b/TBAData.py @@ -14,7 +14,7 @@ def __init__(self): configuration = tbaapiv3client.Configuration( host="https://www.thebluealliance.com/api/v3", api_key={ - "X-TBA-Auth-Key": "***REMOVED***" + "X-TBA-Auth-Key": "PpRS8F8YPmF2flKXvPY9S9HhzFypvmDRHR8zzBPCotpZLpsftS8rvZCdWhYB7zXN" }, ) diff --git a/nexusData.py b/nexusData.py index f3afd92..c0db3f0 100644 --- a/nexusData.py +++ b/nexusData.py @@ -7,7 +7,7 @@ event_key = "demo8771" # TESTING! change to the event key before using at events url = "https://frc.nexus/api/v1/event/" + event_key -headers = {"Nexus-Api-Key": "***REMOVED***"} +headers = {"Nexus-Api-Key": "gckINf2G_dswez0anwAsTTGQ9Cc"} def nexusData(): diff --git a/src/main.rs b/src/main.rs index 1adc72e..f6f941d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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] diff --git a/src/lib.rs b/src/query.rs similarity index 97% rename from src/lib.rs rename to src/query.rs index 87ec239..db8641a 100644 --- a/src/lib.rs +++ b/src/query.rs @@ -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 Option<&'a str>>, diff --git a/tbaPulseData.py b/tbaPulseData.py index 2aacd83..fe3ff16 100644 --- a/tbaPulseData.py +++ b/tbaPulseData.py @@ -1,6 +1,6 @@ import tbapy -***REMOVED*** +key = "Ab5I0k9SHkYT1FC4Yh5T2lpnjsewAsHNRUnoRLcnk7vueOW4VeNWf2NMBzfGsDeN" event_key = "2024cc" # TESTING! change to your event key when using at events tba = tbapy.TBA(key)