промежуточный. рефакторинг отправки пакета сапфора на сервер. сделал подобно двм.
This commit is contained in:
@@ -156,7 +156,7 @@ public class TasksDatabase extends SQLiteDatabase {
|
||||
res.add(p);
|
||||
return res;
|
||||
}
|
||||
public SapforTasksPackage getFirstActiveSapforScenario() {
|
||||
public SapforTasksPackage getFirstActiveSapforPackage() {
|
||||
SapforTasksPackage first_active = null;
|
||||
SapforTasksPackage first_queued = null;
|
||||
if (!sapforTasksPackages.Data.isEmpty()) {
|
||||
@@ -175,8 +175,7 @@ public class TasksDatabase extends SQLiteDatabase {
|
||||
}
|
||||
if (first_active != null) return first_active;
|
||||
if (first_queued != null) {
|
||||
// first_queued.state = TasksPackageState.TestsSynchronize; // ? vj
|
||||
first_queued.state = TasksPackageState.RunningPreparation;
|
||||
first_queued.state = TasksPackageState.TestsSynchronize;
|
||||
try {
|
||||
Update(first_queued);
|
||||
} catch (Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user