Skip to content

Commit

Permalink
Change showcase notes as per Melanie's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Jul 9, 2024
1 parent 485268b commit 67eb37a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion analysis_dates.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEFAULT=2017-01-01,AFG=2024-03-01,START_DATE=2017-01-01,END_DATE=2025-03-31,AGO=2021-06-01,BDI=2024-05-01,BEN=2024-03-01,BFA=2024-03-01,BGD=2024-02-01,CAF=2024-04-01,CIV=2024-03-01,CMR=2024-03-01,COD=2023-11-01,CPV=2024-03-01,DJI=2024-04-01,DOM=2023-09-01,ETH=2021-05-01,GHA=2024-03-01,GIN=2024-03-01,GMB=2024-03-01,GNB=2024-03-01,GTM=2023-05-01,HND=2024-02-01,HTI=2024-03-01,KEN=2024-02-01,LBN=2024-03-01,LBR=2023-03-01,LSO=2023-07-01,MDG=2023-12-01,MLI=2024-03-01,MMR=2023-09-01,MOZ=2023-07-01,MRT=2024-03-01,MWI=2024-05-01,NAM=2024-05-01,NER=2024-03-01,NGA=2024-03-01,PAK=2024-03-01,PSE=2024-05-01,SDN=2024-04-01,SEN=2024-03-01,SLE=2024-03-01,SLV=2021-08-01,SOM=2024-01-01,SSD=2023-09-01,SWZ=2023-06-01,TCD=2024-03-01,TGO=2024-03-01,TLS=2023-11-01,TZA=2023-11-01,UGA=2024-04-01,YEM=2023-10-01,ZAF=2020-10-01,ZMB=2023-09-01,ZWE=2020-10-01
DEFAULT=2017-01-01
5 changes: 4 additions & 1 deletion ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,17 +365,20 @@ def generate_dataset_and_showcase(self, folder, output):
)

if countryiso3lower == "global":
showcase_description = "IPC-CH Dashboard"
showcase_url = "https://www.ipcinfo.org/ipcinfo-website/ipc-dashboard/en/"
elif countryiso3 in self.ch_countries:
showcase_description = "CH regional page on IPC website with map and reports"
showcase_url = self.configuration["ch_showcase_url"]
else:
showcase_description = f"Access all of IPC’s analyses for {countryname}"
showcase_url = self.configuration["showcase_url"]
showcase_url = f"{showcase_url}{countryiso3}"
showcase = Showcase(
{
"name": f"{name}-showcase",
"title": f"{title} showcase",
"notes": "IPC-CH Dashboard",
"notes": showcase_description,
"url": showcase_url,
"image_url": "https://www.ipcinfo.org/fileadmin/user_upload/ipcinfo/img/dashboard_thumbnail.jpg",
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def check_files(resources):
assert showcase == {
"image_url": "https://www.ipcinfo.org/fileadmin/user_upload/ipcinfo/img/dashboard_thumbnail.jpg",
"name": "afghanistan-acute-food-insecurity-country-data-showcase",
"notes": "IPC-CH Dashboard",
"notes": "Access all of IPC’s analyses for Afghanistan",
"tags": [
{
"name": "hxl",
Expand All @@ -209,7 +209,7 @@ def check_files(resources):
assert showcase == {
"image_url": "https://www.ipcinfo.org/fileadmin/user_upload/ipcinfo/img/dashboard_thumbnail.jpg",
"name": "afghanistan-acute-food-insecurity-country-data-showcase",
"notes": "IPC-CH Dashboard",
"notes": "CH regional page on IPC website with map and reports",
"tags": [
{
"name": "hxl",
Expand Down

0 comments on commit 67eb37a

Please sign in to comment.