Update by natay on Mon Oct 29 09:44:37 EDT 2018 from HUCK-2061DM003.local
@@ -213,18 +213,17 @@ def create_analysis(project, json_text, template, uid=None, user=None, summary='
if analysis and update:
# Update analysis
current = analysis.first()
- summary = summary or current.summary
text = text or current.text
name = name or current.name
template = template or current.template
json_text = json_text or current.json_text
- analysis.update(summary=summary, text=text, name=name, template=template, json_text=json_text)
+ analysis.update(text=text, name=name, template=template, json_text=json_text)
analysis = analysis.first()
logger.info(f"Updated analysis: uid={analysis.uid} name={analysis.name}")
else:
# Create a new analysis
uid = None if analysis else uid
- analysis = Analysis.objects.create(project=project, uid=uid, summary=summary, json_text=json_text,
+ analysis = Analysis.objects.create(project=project, uid=uid, json_text=json_text,
owner=owner, name=name, text=text, security=security,
template=template, sticky=sticky)
logger.info(f"Created analysis: uid={analysis.uid} name={analysis.name}")
