mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/models.py: fix RecipeMaintainerHistory get_by_end_date.
If not maintainer info is found return None instead of the first one entry in the table, this made reporting more consistency. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
ac485c0cc4
commit
b8e16428d8
|
@ -106,7 +106,7 @@ class RecipeMaintainerHistory(models.Model):
|
||||||
if rmh_qry:
|
if rmh_qry:
|
||||||
return rmh_qry[0]
|
return rmh_qry[0]
|
||||||
else:
|
else:
|
||||||
return RecipeMaintainerHistory.objects.filter().order_by('date')[0]
|
return None
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return "%s: %s, %s" % (self.date, self.author.name, self.sha1[:10])
|
return "%s: %s, %s" % (self.date, self.author.name, self.sha1[:10])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user