'Convenient helper to return the release for the current data
and optionally creates the release if it\'s missing.  In case there
is no release info it will return `None`.'

def get_release(self, create=False):

    release = self.data.get('release')
    if (not release):
        return None
    if (not create):
        return Release.get(project=self.project, version=self.data['release'])
    timestamp = self.data.get('timestamp')
    if (timestamp is not None):
        date = datetime.fromtimestamp(timestamp)
    else:
        date = None
    return Release.get_or_create(project=self.project, version=self.data['release'], date_added=date)
