Browse Source

Fix issue with factory wage

JoostSijm 4 năm trước cách đây
mục cha
commit
12f7c86594
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/rival_regions_wrapper/api_wrapper/work.py

+ 1 - 1
src/rival_regions_wrapper/api_wrapper/work.py

@@ -38,7 +38,7 @@ class Work():
             factory_dict['level'] = int(re.sub(r'level\s', '', level_str.group(0)))
 
         string_list = []
-        for string in factory.select_one('.work_factory_button').strings:
+        for string in factory.select_one('.work_factory_button, .button_white').strings:
             string_list.append(string.strip())
         try:
             wage = string_list[2]