Skip to content

Commit

Permalink
Fixed DomainDetailsHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelometal committed May 6, 2014
1 parent b30181b commit c6d2397
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions holmes/handlers/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ def get(self, domain_name):
"is_active": domain.is_active,
"errorPercentage": error_percentage,
"averageResponseTime": response_time_avg,
"homepageId": None,
"homepageReviewId": None,
"homepageId": "",
"homepageReviewId": "",
}

homepage = domain.get_homepage(self.db)

if homepage:
if homepage.uuid:
domain_json["homepageId"] = str(homepage.uuid)
if homepage.last_review_uuid:
domain_json["homepageReviewId"] = str(homepage.last_review_uuid)

self.write_json(domain_json)
Expand Down

0 comments on commit c6d2397

Please sign in to comment.