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:
parent
79bf8e95e6
commit
094ee5452b
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue