Skip to content

Commit

Permalink
don't check the rescore flag for manual uploads, don't add redundancies
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 19, 2020
1 parent aab71d8 commit 3a8cdf6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/Etterna/Singletons/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,17 @@ DownloadManager::ForceUploadScoresForChart(const std::string& ck, bool startnow)
auto& test = cs->GetAllScores();
for (auto& s : test)
if (!s->forceuploadedthissession) {
if (s->GetGrade() != Grade_Failed &&
!s->IsUploadedToServer(wife3_rescore_upload_flag)) {
this->ScoreUploadSequentialQueue.push_back(s);
this->sequentialScoreUploadTotalWorkload += 1;
if (s->GetGrade() != Grade_Failed) {
// don't add stuff we're already uploading
auto res =
std::find(this->ScoreUploadSequentialQueue.begin(),
this->ScoreUploadSequentialQueue.end(),
s);
if (res != this->ScoreUploadSequentialQueue.end())
continue;

this->ScoreUploadSequentialQueue.push_back(s);
this->sequentialScoreUploadTotalWorkload += 1;
}
}
}
Expand Down

0 comments on commit 3a8cdf6

Please sign in to comment.