This commit is contained in:
2025-02-15 23:30:48 +03:00
parent 68bd1ef6b4
commit 77179789f5
24 changed files with 51 additions and 64 deletions

View File

@@ -320,11 +320,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
}
void RefreshDVMTests() throws Exception {
Account account = (Account) request.object;
int sapfor_id = Integer.parseInt(request.arg);
ServerSapfor sapfor = null;
if (!db.serverSapfors.containsKey(sapfor_id))
throw new RepositoryRefuseException("Версия SAPFOR с ключом " + sapfor_id + " не найдена.");
sapfor = db.serverSapfors.get(sapfor_id);
ServerSapfor serverSapfor = db.serverSapfors.getLastDoneVersion();
DownloadRepository downloadRepository = new DownloadRepository();
if (!downloadRepository.Do())
throw new RepositoryRefuseException("Не удалось обновить репозиторий");
@@ -368,7 +364,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
//-теперь создать тесты.
//--
for (Pair<Group, Vector<File>> p : groups)
db.RefreshGroup(account, sapfor, p);
db.RefreshGroup(account, serverSapfor, p);
}
void GetFirstActiveSapforPackages() throws Exception {
response.object = db.getFirstActiveSapforPackagesCopies();