From c476883244715027ae57308839a9af12f0af0a1f Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Tue, 20 Oct 2020 13:02:28 +0200 Subject: [PATCH 1/2] Add Afghanistan link --- static/img/site_flags/flag_afghanistan.png | Bin 0 -> 4700 bytes ureport/settings_common.py | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 static/img/site_flags/flag_afghanistan.png diff --git a/static/img/site_flags/flag_afghanistan.png b/static/img/site_flags/flag_afghanistan.png new file mode 100644 index 0000000000000000000000000000000000000000..86e7fc93f595d87fb8ea24d2dd3f13e80fd09615 GIT binary patch literal 4700 zcmcgw2T;>n)=%h)p(9O{hYBK61Vn*Qq)3sD)PSILNx(-*q=Y6Y9YLA~P|yGh3B^E! z&@3QIZ=r+`6e1-MP@443d;6_#cW1wO-#5FnGw1)G-#v5BnS0K;zjJ18qNTYZ=&ch1EsDF^8t#Rl1_;o*kGInme~A+Lf-AcwgI!u`<^ z7ha9I*PQ(_&5N^J$63R2O>BpU5B$FFMD}%=B0`2~Bd#rx zwq#B6)lB_}HKNy~K*q(U_}vMkqg-@?30Sc22Srw;@VmcLw%=!dHCb28=pFg%+~D@P z@+Y$uTJ{n3@nCKhF3?lpRGB+Fs}u?kMwX&ZL4Al{K;z!&X9!sAj)W^}`BNJzKMYfh7p-rqFupYUD)83<Lwhulv{~NbJ;?6B(>qcMJz~E=&DbANLu4IaT(qaJsNy zXJa)wWlNLroceO7FQ~qAxY-f$XdA=jU~iu*A1+E1N$4nUc${rNX}fvoLOroJEbMN+ zYSKt0*~@Pdj@m24cU=tFGQ*LAyTiI5(W?t}WVXf^wXb|$5E7Qscfa~7GKs0jb0xIi zGmk;&P$eAJztUgMkdGDmMLDt$txX{0vYJ#1t*JZ-H>c5GkcU^!115ppDTnNu>OT`V zCGnAWf+y!o4JKc-OdqNQs7w6xR>Uk>Rb(?4&4@_gcQxxI5Y4Xd-+ZUN{>$#Oidw?j8 zf6Tq8h(JLW$-`z!P={ULO|P_7<7q9S&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#M-k3kBXiN z%?mDERiS#>oy7Ss^p?CmWc_<825e_bB-%_%m#b~QtGu=8tx_E&vD<5Zm(jsbuuJ`2 jWBJ)({(WG{n{fb)6mC-knkMJ|_IPA$V6KnVb&LHA6w6o= literal 0 HcmV?d00001 diff --git a/ureport/settings_common.py b/ureport/settings_common.py index 4fdde3841..83b53d4ec 100644 --- a/ureport/settings_common.py +++ b/ureport/settings_common.py @@ -936,6 +936,13 @@ # Country flags # ----------------------------------------------------------------------------------- COUNTRY_FLAGS_SITES = [ + dict( + name="Afghanistan", + host="//afghanistan.ureport.in/", + flag="flag_afghanistan.png", + is_static=True, + count_link="http://afghanistan.ureport.in/count/", + ), dict( name="Argentina", host="//argentina.ureport.in/", From 145f319b72b8b99b2c8c7b28810d8588ab8c4dd2 Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Tue, 20 Oct 2020 13:14:31 +0200 Subject: [PATCH 2/2] Update tests --- ureport/utils/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ureport/utils/tests.py b/ureport/utils/tests.py index 405a8c3fb..b9652e21a 100644 --- a/ureport/utils/tests.py +++ b/ureport/utils/tests.py @@ -77,7 +77,7 @@ def test_get_linked_orgs(self): # we have 3 old org in the settings self.assertEqual(len(get_linked_orgs()), settings_sites_count) - self.assertEqual(get_linked_orgs()[0]["name"].lower(), "argentina") + self.assertEqual(get_linked_orgs()[0]["name"].lower(), "afghanistan") @patch("dash.orgs.models.TembaClient.get_flows") def test_fetch_flows(self, mock_get_flows):