Issue #3: Implement homepage template and design
This commit is contained in:
@@ -21,11 +21,8 @@ def signup(request):
|
||||
form = OrganizationForm(request.POST)
|
||||
if form.is_valid():
|
||||
organization = form.save()
|
||||
print(f"Organization :{organization}")
|
||||
top_risk_ids = get_top_risk(organization)
|
||||
print(f"Top risks: {top_risk_ids}")
|
||||
top_risks = Risk.objects.filter(risk_id__in = top_risk_ids)
|
||||
print(f"Final: {top_risks}")
|
||||
|
||||
document = Document.objects.create(organization=organization)
|
||||
document.add_segment('h1', "Top 10 Risk Identified")
|
||||
|
||||
Reference in New Issue
Block a user