Revert the deliberate break (#8299)
Run 11302 failed all ten named tests, and with them apierror's
TestWrite_SendsTheEnvelopeAndHidesAPlainErrorsText and api's
TestFlag_BadReason, which pin the same rules from the handler side.
This reverts commit 21adbc2283.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,7 +124,7 @@ func (c *Client) SubmitListens(ctx context.Context, token string, listens []List
|
||||
case resp.StatusCode >= 500:
|
||||
return fmt.Errorf("%w: status %d", ErrTransient, resp.StatusCode)
|
||||
default:
|
||||
return fmt.Errorf("%w: status %d", ErrTransient, resp.StatusCode) /* DELIBERATE BREAK */
|
||||
return fmt.Errorf("%w: status %d", ErrPermanent, resp.StatusCode)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ package scrobble
|
||||
// The two thresholds are deliberately separate from the skip-detection
|
||||
// thresholds, which feed the scoring formula's skip penalty instead.
|
||||
func Qualifies(durationPlayedMs int, completionRatio float64) bool {
|
||||
return durationPlayedMs > 240_000 /* DELIBERATE BREAK */ || completionRatio >= 0.5
|
||||
return durationPlayedMs >= 240_000 || completionRatio >= 0.5
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user