Ver código fonte

Fix issue with factory wage

JoostSijm 4 anos atrás
pai
commit
12f7c86594
1 arquivos alterados com 1 adições e 1 exclusões
  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]