hh-applicant-tool 0.6.3__py3-none-any.whl → 0.6.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of hh-applicant-tool might be problematic. Click here for more details.

@@ -266,11 +266,8 @@ class Operation(BaseOperation, GetResumeIdMixin):
266
266
  telemetry_data["employers"][employer_id] = employer_data
267
267
 
268
268
  if not do_apply:
269
- logger.debug(
270
- "Пропускаем вакансию так как достигла лимита заявок: %s",
271
- vacancy["alternate_url"],
272
- )
273
- continue
269
+ logger.debug("Останавливаем рассылку откликов, так как достигли лимита, попробуйте через сутки.")
270
+ break
274
271
 
275
272
  if relations:
276
273
  logger.debug(
@@ -16,6 +16,7 @@ logger = logging.getLogger(__package__)
16
16
  class Namespace(BaseNamespace):
17
17
  older_than: int
18
18
  blacklist_discard: bool
19
+ all: bool
19
20
 
20
21
 
21
22
  class Operation(BaseOperation):
@@ -93,7 +94,10 @@ class Operation(BaseOperation):
93
94
  ")",
94
95
  )
95
96
  if is_discard and args.blacklist_discard:
96
- employer = vacancy["employer"]
97
+ employer = vacancy.get("employer", {})
98
+ if not employer or 'id' not in employer:
99
+ # Работодатель удален или скрыт
100
+ continue
97
101
  try:
98
102
  r = api_client.put(f"/employers/blacklisted/{employer['id']}")
99
103
  assert not r
@@ -104,10 +104,11 @@ class Operation(BaseOperation, GetResumeIdMixin):
104
104
 
105
105
  def _get_blacklisted(self) -> list[str]:
106
106
  rv = []
107
+ # В этом методе API страницы с 0 начинаются
107
108
  for page in count(0):
108
109
  r = self.api_client.get("/employers/blacklisted", page=page)
109
110
  rv += [item["id"] for item in r["items"]]
110
- if page >= r["pages"]:
111
+ if page + 1 >= r["pages"]:
111
112
  break
112
113
  return rv
113
114
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hh-applicant-tool
3
- Version: 0.6.3
3
+ Version: 0.6.5
4
4
  Summary:
5
5
  Author: Senior YAML Developer
6
6
  Author-email: yamldeveloper@proton.me
@@ -11,22 +11,22 @@ hh_applicant_tool/jsonc.py,sha256=QNS4gRHfi7SAeOFnffAIuhH7auC4Y4HAkmH12eX5PkI,40
11
11
  hh_applicant_tool/main.py,sha256=A4YPkNXAdZY0GoGm0iigiQtzXTrpR3SaIGo54q9-Dd0,5652
12
12
  hh_applicant_tool/mixins.py,sha256=8VoyrNgdlljy6pLTSFGJOYd9kagWT3yFOZYIGR6MEbI,425
13
13
  hh_applicant_tool/operations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- hh_applicant_tool/operations/apply_similar.py,sha256=EXY7LXuUGx5CjbHG22bR2-22gG3c--IniQjreHTG1pY,15568
14
+ hh_applicant_tool/operations/apply_similar.py,sha256=tsfEP0fFWCLYdTqHBXXTPjNYE7yQMPIL3jMkQ4P-e-c,15520
15
15
  hh_applicant_tool/operations/authorize.py,sha256=NYrxe6oemUBcDHioT1t1lJmi9l45V4ZXzQPD_-nf6hk,3328
16
16
  hh_applicant_tool/operations/call_api.py,sha256=o3GZgtqk6w4zpCm-JTHVjFrKVOwW-vsu1HdRi-hqAjo,1423
17
- hh_applicant_tool/operations/clear_negotiations.py,sha256=mu9nBdP7b_dlEMQk88w0IWX1lNTTFqnWbS1tCO1Mlws,4329
17
+ hh_applicant_tool/operations/clear_negotiations.py,sha256=FG_43P5GWmfKUggkKZqDznQ2_iBJ3zrZtv8yEI2XOXQ,4527
18
18
  hh_applicant_tool/operations/config.py,sha256=BzGWbHwNlXIpYHxnZUidDZTk1-7GZb8UL-asy8w4uN4,1390
19
19
  hh_applicant_tool/operations/delete_telemetry.py,sha256=JHdh_l7IJL_qy5AIIy8FQpUupmH60D3a6zjfEVKkT2U,986
20
20
  hh_applicant_tool/operations/get_employer_contacts.py,sha256=Sd-x3O08bmKm1OGVLtJ6rcPZ_j1jwjlqKV4z1n_G-38,9918
21
21
  hh_applicant_tool/operations/list_resumes.py,sha256=dILHyBCSEVqdNAvD8SML5f2Lau1R2AzTaKE9B4FG8Wg,1109
22
22
  hh_applicant_tool/operations/refresh_token.py,sha256=v_Fcw9mCfOdE6MLTCQjZQudhJPX0fup3k0BaIM394Qw,834
23
- hh_applicant_tool/operations/reply_employers.py,sha256=eJlVuliQO_fy7_sBj-1RqgjphqbqP_yejbNFVxiUhNM,13426
23
+ hh_applicant_tool/operations/reply_employers.py,sha256=uxLN2YpZvz3m_KtnfaaJcfVEZkO-h9RMRndFmiqhLQw,13512
24
24
  hh_applicant_tool/operations/update_resumes.py,sha256=_r7HA_vpYMs5DFY-mVP1ZRG9bggsv7ebKYrwteBmJ30,1053
25
25
  hh_applicant_tool/operations/whoami.py,sha256=pNWJMmEQLBk3U6eiGz4CHcX7eXzDXcfezFjX7zLjqyA,711
26
26
  hh_applicant_tool/telemetry_client.py,sha256=1EKZWc5kMx2yERW9SrR9vaf-OB6M_KKcMXeicH5YyY0,3834
27
27
  hh_applicant_tool/types.py,sha256=q3yaIcq-UOkPzjxws0OFa4w9fTty-yx79_dic70_dUM,843
28
28
  hh_applicant_tool/utils.py,sha256=3T4A2AykGqTwtGAttmYplIjHwFl3pNAcbWIVuA-OheQ,3080
29
- hh_applicant_tool-0.6.3.dist-info/METADATA,sha256=kBijByhrEeWXEBq6dNd6Y4x_LScU9kC1dW-_yPWhSFo,20600
30
- hh_applicant_tool-0.6.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
31
- hh_applicant_tool-0.6.3.dist-info/entry_points.txt,sha256=Vb7M2YaYLMtKYJZh8chIrXZApMzSRFT1-rQw-U9r10g,65
32
- hh_applicant_tool-0.6.3.dist-info/RECORD,,
29
+ hh_applicant_tool-0.6.5.dist-info/METADATA,sha256=3IYSIBLTXeYR_bOUlJhvCyZX1fxVZrGAOVGenzDcpe4,20600
30
+ hh_applicant_tool-0.6.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
31
+ hh_applicant_tool-0.6.5.dist-info/entry_points.txt,sha256=Vb7M2YaYLMtKYJZh8chIrXZApMzSRFT1-rQw-U9r10g,65
32
+ hh_applicant_tool-0.6.5.dist-info/RECORD,,