mirror of
https://codeberg.org/demostf/api.git
synced 2026-08-02 12:24:52 +02:00
fix min-time
This commit is contained in:
parent
bdf99cc145
commit
6889c726f9
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class UploadProvider extends BaseProvider {
|
||||||
|
|
||||||
public function validateParsed(Header $header, ParsedDemo $parsedDemo): ?string {
|
public function validateParsed(Header $header, ParsedDemo $parsedDemo): ?string {
|
||||||
$rounds = $parsedDemo->getRedScore() + $parsedDemo->getBlueScore();
|
$rounds = $parsedDemo->getRedScore() + $parsedDemo->getBlueScore();
|
||||||
if (0 === $rounds && $header->getDuration() < (15 * 60)) {
|
if (0 === $rounds && $header->getDuration() < (5 * 60)) {
|
||||||
return 'Demos must be at least 5 minutes long';
|
return 'Demos must be at least 5 minutes long';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue