Skip to content

Commit

Permalink
Add --delete-only flag to verify command
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 30, 2024
1 parent 1104af6 commit e09740e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public class VerifyImportedScoresCommand
[Option(CommandOptionType.SingleOrNoValue, Template = "--dry-run")]
public bool DryRun { get; set; }

[Option(CommandOptionType.SingleOrNoValue, Template = "--delete-only")]
public bool DeleteOnly { get; set; }

private ElasticQueuePusher? elasticQueueProcessor;

public async Task<int> OnExecuteAsync(CancellationToken cancellationToken)
Expand Down Expand Up @@ -134,6 +137,9 @@ public async Task<int> OnExecuteAsync(CancellationToken cancellationToken)
continue;
}

if (DeleteOnly)
continue;

var referenceScore = importedScore.ReferenceScore!;

if (!check(importedScore.id, "performance", importedScore.pp ?? 0, importedScore.HighScore.pp ?? 0))
Expand Down

0 comments on commit e09740e

Please sign in to comment.