@task(ignore_result=False)
@write
def handle_file_validation_result(results, file_id, annotate=True):
 if annotate:
  results = annotate_validation_results(results)
 file_ = File.objects.get(pk=file_id)
 annotate_webext_incompatibilities(results=results, file_=file_, addon=file_.version.addon, version_string=file_.version.version, channel=file_.version.channel)
 return FileValidation.from_json(file_, results)

@ task ( ignore_result = False ) @ write def handle_file_validation_result ( results , file_id , annotate = True ) : if annotate : results = annotate_validation_results ( results ) file_ = File . objects . get ( pk = file_id ) annotate_webext_incompatibilities ( results = results , file_ = file_ , addon = file_ . version . addon , version_string = file_ . version . version , channel = file_ . version . channel ) return FileValidation . from_json ( file_ , results )
annotates a set of validation results .