43 |
|
check = self.checkIfCreate() |
44 |
|
|
45 |
|
if check == 0 : |
46 |
– |
isFirstSubmission = False |
46 |
|
|
47 |
|
self.taskuuid = str(common._db.queryTask('name')) |
48 |
|
self.remotedir = os.path.join(self.storage_path, self.taskuuid) |
49 |
|
self.moveProxy(self.dontMoveProxy) |
50 |
|
|
51 |
|
# check if it is the first submission |
52 |
< |
n_createdJob = len(common._db.queryAttrRunJob({'status':'C'},'status')) |
54 |
< |
if n_createdJob == len(self.complete_List): isFirstSubmission = True |
52 |
> |
isFirstSubmission = common._db.checkIfNeverSubmittedBefore() |
53 |
|
|
54 |
|
# standard submission to the server |
55 |
|
self.performSubmission(isFirstSubmission) |