From 094ee5452b8392124b101f954ef2096649dbf8e2 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Fri, 3 Nov 2023 18:09:33 -0400 Subject: [PATCH] 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 --- src/sync.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sync.rs b/src/sync.rs index 23730e9..38b5d0d 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -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,