소스 검색

Add luxembourg to list

JoostSijm 6 년 전
부모
커밋
9ff278f6b7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      index.py

+ 2 - 1
index.py

@@ -10,6 +10,7 @@ REGIONS = {
     'Southern Netherlands': None,
     'Western Netherlands': None,
     'Amsterdam': None,
+    'Luxembourg': None,
 }
 
 PRINT_DENSE = True
@@ -30,7 +31,7 @@ def calculate_index():
         for line in file:
             line_nr += 1
             if region_in_string(line):
-                percentage = 11 - 10 / 998 * line_nr
+                percentage = 11 - 10 / 998 * (line_nr - 3)
                 diff_percentage = last_percentage - percentage
                 last_percentage = percentage
                 region = line.strip().split('\t')