Fix certain events crashing GraphQL code

This might be the stupidest bug I've ever encountered. How is it even
possible that this could have happened. What the fuck
This commit is contained in:
Kiana Sheibani 2023-11-03 18:09:33 -04:00
parent 79bf8e95e6
commit 094ee5452b
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -267,6 +267,11 @@ fn update_from_set(
)
}
// HACK: Blacklist of events not to access
// due to the worst bug I have ever encountered in my entire life
// Why is start.gg like this
const EVENT_BLACKLIST: &[EventId] = &[EventId(273741)];
pub fn sync_dataset(
connection: &Connection,
dataset: &str,
@ -280,6 +285,10 @@ pub fn sync_dataset(
let num_events = events.len();
for (i, event) in events.into_iter().enumerate() {
if EVENT_BLACKLIST.contains(&event) {
continue;
}
println!(
"Accessing sets from event ID {}... ({}/{})",
event.0,