PEATSA/WebApp/Data.py
def jobsWithCalculationsInState(self, state):
	
		'''Returns any job which has a calculation in \e state
		
		See Job.calculationState() for more info'''
	
		self.connection.commit()
		selectQuery = """SELECT JobID, Stability, Scan, Binding FROM %s""" % (self.jobTable)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		print rows
		
		ids = []
		for row in rows:
			if state in row:
				ids.append(row[0])
				
		return ids
Returns any job which has a calculation in \e state
		
		See Job.calculationState() for more info
Returns any job which has a calculation in \e state
See Job.calculationState() for more info
Returns any job which has a calculation in \ e state See Job . calculationState () for more info
def jobsWithCalculationsInState(self, state):
		self.connection.commit()
		selectQuery = """SELECT JobID, Stability, Scan, Binding FROM %s""" % (self.jobTable)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		print rows
		ids = []
		for row in rows:
			if state in row:
				ids.append(row[0])
		return ids
def jobsWithCalculationsInState ( self , state ) : self . connection . commit ( ) selectQuery = """SELECT JobID, Stability, Scan, Binding FROM %s""" % ( self . jobTable ) self . cursor . execute ( selectQuery ) rows = self . cursor . fetchall ( ) print rows ids = [ ] for row in rows : if state in row : ids . append ( row [ 0 ] ) return ids
Returns any job which has a calculation in \e state
See Job.calculationState() for more info
Returns any job which has a calculation in \ e state See Job . calculationState () for more info
'''Returns any job which has a calculation in \e state
		
		See Job.calculationState() for more info'''
self
state