1
Fork 0

Fix chart best defaulting to local scores at all times

This commit is contained in:
prescientmoon 2025-02-12 18:29:57 +01:00
parent 22c627a3f7
commit a55aa56b62
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -290,7 +290,7 @@ async fn best(
name: String,
) -> Result<(), Error> {
ctx.defer().await?;
let res = best_impl(&mut ctx, &name, source.unwrap_or(DataSource::Local)).await;
let res = best_impl(&mut ctx, &name, source.unwrap_or_default()).await;
ctx.handle_error(res).await?;
Ok(())