Skip to content

Commit f1b2945

Browse files
committed
precommit
1 parent 13f4150 commit f1b2945

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

website/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4713,6 +4713,7 @@ def weekly_report(request):
47134713
return HttpResponse("Weekly report sent successfully.")
47144714

47154715
def blt_tomato(request):
4716+
47164717
current_dir = os.path.dirname(__file__)
47174718
json_file_path = os.path.join(current_dir, "fixtures", "blt_tomato_project_link.json")
47184719

@@ -4723,10 +4724,12 @@ def blt_tomato(request):
47234724
data = []
47244725

47254726
for project in data:
4727+
47264728
funding_details = project.get("funding_details", "").split(", ")
47274729
funding_links = [
47284730
url.strip() for url in funding_details if url.startswith("https://")
47294731
]
4732+
47304733
funding_link = funding_links[0] if funding_links else "#"
47314734
project["funding_hyperlinks"] = funding_link
47324735

0 commit comments

Comments
 (0)