File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,10 @@ def create_submissions(
69
69
batch_size = client .EFFECTIVE_SUBMISSION_BATCH_SIZE
70
70
result_submissions = []
71
71
for submission_batch in batched (submissions , batch_size ):
72
- submissions_list = list (submission_batch )
73
72
if batch_size > 1 :
74
- result_submissions .extend (client .create_submissions (submissions_list ))
73
+ result_submissions .extend (client .create_submissions (submission_batch ))
75
74
else :
76
- result_submissions .append (client .create_submission (submissions_list [0 ]))
75
+ result_submissions .append (client .create_submission (submission_batch [0 ]))
77
76
78
77
return result_submissions
79
78
@@ -93,14 +92,14 @@ def get_submissions(
93
92
batch_size = client .EFFECTIVE_SUBMISSION_BATCH_SIZE
94
93
result_submissions = []
95
94
for submission_batch in batched (submissions , batch_size ):
96
- submissions_list = list ( submission_batch )
95
+
97
96
if batch_size > 1 :
98
97
result_submissions .extend (
99
- client .get_submissions (submissions_list , fields = fields )
98
+ client .get_submissions (submission_batch , fields = fields )
100
99
)
101
100
else :
102
101
result_submissions .append (
103
- client .get_submission (submissions_list [0 ], fields = fields )
102
+ client .get_submission (submission_batch [0 ], fields = fields )
104
103
)
105
104
106
105
return result_submissions
Original file line number Diff line number Diff line change @@ -57,3 +57,6 @@ class Status(IntEnum):
57
57
RUNTIME_ERROR_OTHER = 12
58
58
INTERNAL_ERROR = 13
59
59
EXEC_FORMAT_ERROR = 14
60
+
61
+ def __str__ (self ):
62
+ return self .name .lower ().replace ("_" , " " ).title ()
You can’t perform that action at this time.
0 commit comments