hh-applicant-tool 0.6.3__tar.gz → 0.6.5__tar.gz

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.

Files changed (31) hide show
  1. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/PKG-INFO +1 -1
  2. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/apply_similar.py +2 -5
  3. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/clear_negotiations.py +5 -1
  4. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/reply_employers.py +2 -1
  5. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/pyproject.toml +1 -1
  6. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/README.md +0 -0
  7. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/__init__.py +0 -0
  8. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/__main__.py +0 -0
  9. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/ai/__init__.py +0 -0
  10. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/ai/blackbox.py +0 -0
  11. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/api/__init__.py +0 -0
  12. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/api/client.py +0 -0
  13. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/api/errors.py +0 -0
  14. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/color_log.py +0 -0
  15. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/constants.py +0 -0
  16. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/jsonc.py +0 -0
  17. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/main.py +0 -0
  18. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/mixins.py +0 -0
  19. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/__init__.py +0 -0
  20. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/authorize.py +0 -0
  21. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/call_api.py +0 -0
  22. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/config.py +0 -0
  23. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/delete_telemetry.py +0 -0
  24. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/get_employer_contacts.py +0 -0
  25. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/list_resumes.py +0 -0
  26. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/refresh_token.py +0 -0
  27. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/update_resumes.py +0 -0
  28. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/operations/whoami.py +0 -0
  29. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/telemetry_client.py +0 -0
  30. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/types.py +0 -0
  31. {hh_applicant_tool-0.6.3 → hh_applicant_tool-0.6.5}/hh_applicant_tool/utils.py +0 -0
@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "hh-applicant-tool"
3
- version = "0.6.3"
3
+ version = "0.6.5"
4
4
  description = ""
5
5
  authors = ["Senior YAML Developer <yamldeveloper@proton.me>"]
6
6
  readme = "README.md"