PEATSA/WebApp/Data.py
def numberOfJobs(self):
	
		'''Returns the number of jobs in this run'''
		
		#Check the job entry exists in the database
		query = "SELECT COUNT(*) FROM %s WHERE RunID = '%s'" % (self.jobAssocTable, self.identification)
		self.cursor.execute(query)
		data = self.cursor.fetchall()
		
		return int(data[0][0])
Returns the number of jobs in this run
Returns the number of jobs in this run
Returns the number of jobs in this run
def numberOfJobs(self):
		query = "SELECT COUNT(*) FROM %s WHERE RunID = '%s'" % (self.jobAssocTable, self.identification)
		self.cursor.execute(query)
		data = self.cursor.fetchall()
		return int(data[0][0])
def numberOfJobs ( self ) : query = "SELECT COUNT(*) FROM %s WHERE RunID = '%s'" % ( self . jobAssocTable , self . identification ) self . cursor . execute ( query ) data = self . cursor . fetchall ( ) return int ( data [ 0 ] [ 0 ] )
Returns the number of jobs in this run
Returns the number of jobs in this run
'''Returns the number of jobs in this run''' #Check the job entry exists in the database
self