aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Roman2019-10-08 19:48:26 +0300
committerTudor Roman2019-10-08 19:48:26 +0300
commit0086ea330f3dc3b8aa4a9ca3345b0c49a4b91109 (patch)
treeb307616568cc5a782c7304009ff06aa053d85b5a
parentba6c515cce83bf75081d4057b283d15ef524a3c8 (diff)
downloadrmi_scripts-0086ea330f3dc3b8aa4a9ca3345b0c49a4b91109.tar.gz
rmi_scripts-0086ea330f3dc3b8aa4a9ca3345b0c49a4b91109.zip
special case in grab_flagsHEADmaster
-rwxr-xr-xgrab_flags2
1 files changed, 2 insertions, 0 deletions
diff --git a/grab_flags b/grab_flags
index 51e2df9..0d50fd6 100755
--- a/grab_flags
+++ b/grab_flags
@@ -21,5 +21,7 @@ with open(sys.argv[1]) as file:
reader = csv.DictReader(file, delimiter=',')
for row in reader:
country = row['id'][0:2].lower()
+ if country == 'vi': # vi for vianu
+ continue
call(['wget', '-O', '{}.png'.format(row['id']), 'https://github.com/hjnilsson/country-flags/raw/master/png100px/{}.png'.format(country)])
print(row['id'][0:2])