summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/orm/models.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 6c5cfcd711..a49f9a432a 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -225,16 +225,16 @@ class Project(models.Model):
225 return( -1 ) 225 return( -1 )
226 226
227 def get_last_outcome(self): 227 def get_last_outcome(self):
228 build_id = self.get_last_build_id 228 build_id = self.get_last_build_id()
229 if (-1 == build_id): 229 if (-1 == build_id):
230 return( "" ) 230 return( "" )
231 try: 231 try:
232 return Build.objects.filter( id = self.get_last_build_id )[ 0 ].outcome 232 return Build.objects.filter( id = build_id )[ 0 ].outcome
233 except (Build.DoesNotExist,IndexError): 233 except (Build.DoesNotExist,IndexError):
234 return( "not_found" ) 234 return( "not_found" )
235 235
236 def get_last_target(self): 236 def get_last_target(self):
237 build_id = self.get_last_build_id 237 build_id = self.get_last_build_id()
238 if (-1 == build_id): 238 if (-1 == build_id):
239 return( "" ) 239 return( "" )
240 try: 240 try:
@@ -243,7 +243,7 @@ class Project(models.Model):
243 return( "not_found" ) 243 return( "not_found" )
244 244
245 def get_last_errors(self): 245 def get_last_errors(self):
246 build_id = self.get_last_build_id 246 build_id = self.get_last_build_id()
247 if (-1 == build_id): 247 if (-1 == build_id):
248 return( 0 ) 248 return( 0 )
249 try: 249 try:
@@ -252,7 +252,7 @@ class Project(models.Model):
252 return( "not_found" ) 252 return( "not_found" )
253 253
254 def get_last_warnings(self): 254 def get_last_warnings(self):
255 build_id = self.get_last_build_id 255 build_id = self.get_last_build_id()
256 if (-1 == build_id): 256 if (-1 == build_id):
257 return( 0 ) 257 return( 0 )
258 try: 258 try:
@@ -269,7 +269,7 @@ class Project(models.Model):
269 return last_build.get_image_file_extensions() 269 return last_build.get_image_file_extensions()
270 270
271 def get_last_imgfiles(self): 271 def get_last_imgfiles(self):
272 build_id = self.get_last_build_id 272 build_id = self.get_last_build_id()
273 if (-1 == build_id): 273 if (-1 == build_id):
274 return( "" ) 274 return( "" )
275 try: 275 try: