File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4713,6 +4713,7 @@ def weekly_report(request):
4713
4713
return HttpResponse ("Weekly report sent successfully." )
4714
4714
4715
4715
def blt_tomato (request ):
4716
+
4716
4717
current_dir = os .path .dirname (__file__ )
4717
4718
json_file_path = os .path .join (current_dir , "fixtures" , "blt_tomato_project_link.json" )
4718
4719
@@ -4723,10 +4724,12 @@ def blt_tomato(request):
4723
4724
data = []
4724
4725
4725
4726
for project in data :
4727
+
4726
4728
funding_details = project .get ("funding_details" , "" ).split (", " )
4727
4729
funding_links = [
4728
4730
url .strip () for url in funding_details if url .startswith ("https://" )
4729
4731
]
4732
+
4730
4733
funding_link = funding_links [0 ] if funding_links else "#"
4731
4734
project ["funding_hyperlinks" ] = funding_link
4732
4735
You can’t perform that action at this time.
0 commit comments