fixed bug that caused TypeError: '<=' not supported between instances of 'NoneType' and 'int'
work related to Bug 3315 - make simpaweb django app a packageable application
This commit is contained in:
parent
654e449007
commit
7a5d32dec0
|
@ -29,6 +29,7 @@ class JobId:
|
||||||
"""
|
"""
|
||||||
MAX_NUM_JOBS_IN_ARRAY = 1000000
|
MAX_NUM_JOBS_IN_ARRAY = 1000000
|
||||||
def __init__( self, iJobId, iJobArrayElementId = None):
|
def __init__( self, iJobId, iJobArrayElementId = None):
|
||||||
|
if iJobArrayElementId is not None:
|
||||||
assert iJobArrayElementId <= self.MAX_NUM_JOBS_IN_ARRAY
|
assert iJobArrayElementId <= self.MAX_NUM_JOBS_IN_ARRAY
|
||||||
self.m_iJobId = iJobId
|
self.m_iJobId = iJobId
|
||||||
self.m_iJobArrayElementId = iJobArrayElementId # None if this identifier does not refer to a job array element
|
self.m_iJobArrayElementId = iJobArrayElementId # None if this identifier does not refer to a job array element
|
||||||
|
|
Loading…
Reference in New Issue