<commit_before>
from google.appengine.ext import ndb
from employee import Employee

class Constrain(ndb.Model):
	employee = ndb.KeyProperty(kind = Employee)
	constrianDay = ndb.IntegerProperty()
	constrianMonth = ndb.IntegerProperty()
	ShiftType = ndb.StringProperty()
	constrainKind = ndb.StringProperty()
	notes = ndb.StringProperty()

		
	def getShiftHeads(self, day, month, shift, satisfactory):
		if not day or not month or not shift or not satisfactory:
			return False
	
		employees = []
		list = Constrain.query(Constrain.constrainDay == day and Constrain.constrainMonth == month
								and Constrain.shiftType == shfit, Constrain.constrainKind == satisfactory and Constrain.employee.shiftHead)
		
		if list:
			for l in list:
				employees.append(l.employee.userName)
				
			return employees
		else:
			return None
	<commit_msg>updated constrain.py<commit_after>
from google.appengine.ext import ndb
from employee import Employee

class Constrain(ndb.Model):
	employee = ndb.KeyProperty(kind = Employee)
	constrianDay = ndb.IntegerProperty()
	constrianWeek = ndb.IntegerProperty()
	ShiftType = ndb.IntegerProperty()
	constrainKind = ndb.IntegerProperty()
	notes = ndb.StringProperty()

		
	def getShiftHeads(self, day, month, shift, satisfactory):
		if not day or not month or not shift or not satisfactory:
			return False
	
		employees = []
		list = Constrain.query(Constrain.constrainDay == day and Constrain.constrainMonth == month
								and Constrain.shiftType == shift, Constrain.constrainKind == satisfactory and Constrain.employee.shiftHead)
		
		if list:
			for l in list:
				employees.append(l.employee.userName)
				
			return employees
		else:
			return None
	
{'fraction_non_alphanumeric': 0.08600237247924081, 'fraction_numerical': 0.0, 'mean_word_length': 4.222910216718266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4930525', 'n_tokens_mistral': 608, 'n_tokens_neox': 495, 'n_words': 141}