Skip to content

Commit

Permalink
Run new version of black on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
ronardcaktus committed Jul 25, 2024
1 parent ede8143 commit 96ddf6f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
16 changes: 10 additions & 6 deletions apps/disease_control/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ def get_disease_control_services_qs():
def get_visible_section_headers():
return [
"Topic-specific Guidance" if get_topic_specific_guidance_qs().exists() else "",
"Facility-specific Guidance"
if get_facility_specific_guidance_qs().exists()
else "",
"Disease Control Services"
if get_disease_control_services_qs().exists()
else "",
(
"Facility-specific Guidance"
if get_facility_specific_guidance_qs().exists()
else ""
),
(
"Disease Control Services"
if get_disease_control_services_qs().exists()
else ""
),
]
2 changes: 1 addition & 1 deletion apps/hip/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_only_pdfs_are_scaned(db, mocker):
mock_scan_function = mocker.patch("apps.hip.forms.scan_pdf_for_malicious_content")

# Uploading a non-PDF file does not call scan_pdf_for_malicious_content()
for (extension, content_type) in [
for extension, content_type in [
("png", "image/png"),
("jpg", "image/jpeg"),
("jpeg", "image/jpeg"),
Expand Down
14 changes: 8 additions & 6 deletions apps/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ def get_context(self, request):
"title": r.title,
"url": r.url,
"update_frequency": r.staticpage.datareportdetailpage.update_frequency,
"last_updated": r.latest_revision_created_at.date()
if r.latest_revision_created_at
else None,
"last_updated": (
r.latest_revision_created_at.date()
if r.latest_revision_created_at
else None
),
"associated_disease": r.staticpage.datareportdetailpage.associated_disease,
"external": False,
}
Expand Down Expand Up @@ -135,9 +137,9 @@ class DataReportDetailArchiveListPage(HipBasePage):

def get_context(self, request):
context = super().get_context(request)
context[
"archived_reports"
] = DataReportDetailArchiveDetailPage.objects.child_of(self).order_by("-year")
context["archived_reports"] = (
DataReportDetailArchiveDetailPage.objects.child_of(self).order_by("-year")
)
return context


Expand Down

0 comments on commit 96ddf6f

Please sign in to comment.