hh-applicant-tool 0.6.8__py3-none-any.whl → 0.6.9__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.

@@ -66,6 +66,9 @@ class Namespace(BaseNamespace):
66
66
  def _bool(v: bool) -> str:
67
67
  return str(v).lower()
68
68
 
69
+ def _join_list(items: list[Any] | None) -> str:
70
+ return ",".join(f"{v}" for v in items) if items else ""
71
+
69
72
  class Operation(BaseOperation, GetResumeIdMixin):
70
73
  """Откликнуться на все подходящие вакансии.
71
74
 
@@ -452,42 +455,23 @@ class Operation(BaseOperation, GetResumeIdMixin):
452
455
  "per_page": per_page,
453
456
  "order_by": self.order_by,
454
457
  }
458
+
455
459
  if self.search:
456
460
  params["text"] = self.search
457
461
  if self.schedule:
458
462
  params['schedule'] = self.schedule
459
463
  if self.experience:
460
464
  params['experience'] = self.experience
461
- if self.search_field:
462
- params["search_field"] = self.search_field
463
- if self.employment:
464
- params["employment"] = self.employment
465
- if self.area:
466
- params["area"] = self.area
467
- if self.metro:
468
- params["metro"] = self.metro
469
- if self.professional_role:
470
- params["professional_role"] = self.professional_role
471
- if self.industry:
472
- params["industry"] = self.industry
473
- if self.employer_id:
474
- params["employer_id"] = self.employer_id
475
- if self.excluded_employer_id:
476
- params["excluded_employer_id"] = self.excluded_employer_id
477
465
  if self.currency:
478
466
  params["currency"] = self.currency
479
467
  if self.salary:
480
468
  params["salary"] = self.salary
481
- if self.only_with_salary is not None:
482
- params["only_with_salary"] = _bool(self.only_with_salary)
483
- if self.label:
484
- params["label"] = self.label
485
469
  if self.period:
486
470
  params["period"] = self.period
487
471
  if self.date_from:
488
472
  params["date_from"] = self.date_from
489
473
  if self.date_to:
490
- params["date_to"] = self.date_to
474
+ params["date_to"] = self.date_to
491
475
  if self.top_lat:
492
476
  params["top_lat"] = self.top_lat
493
477
  if self.bottom_lat:
@@ -500,12 +484,35 @@ class Operation(BaseOperation, GetResumeIdMixin):
500
484
  params["sort_point_lat"] = self.sort_point_lat
501
485
  if self.sort_point_lng:
502
486
  params["sort_point_lng"] = self.sort_point_lng
487
+ if self.search_field:
488
+ params["search_field"] = _join_list(self.search_field)
489
+ if self.employment:
490
+ params["employment"] = _join_list(self.employment)
491
+ if self.area:
492
+ params["area"] = _join_list(self.area)
493
+ if self.metro:
494
+ params["metro"] = _join_list(self.metro)
495
+ if self.professional_role:
496
+ params["professional_role"] = _join_list(self.professional_role)
497
+ if self.industry:
498
+ params["industry"] = _join_list(self.industry)
499
+ if self.employer_id:
500
+ params["employer_id"] = _join_list(self.employer_id)
501
+ if self.excluded_employer_id:
502
+ params["excluded_employer_id"] = _join_list(self.excluded_employer_id)
503
+ if self.label:
504
+ params["label"] = _join_list(self.label)
505
+ if self.only_with_salary is not None:
506
+ params["only_with_salary"] = _bool(self.only_with_salary)
503
507
  if self.clusters is not None:
504
- params["clusters"] = self.clusters
508
+ params["clusters"] = _bool(self.clusters)
505
509
  if self.no_magic is not None:
506
510
  params["no_magic"] = _bool(self.no_magic)
507
511
  if self.premium is not None:
508
512
  params["premium"] = _bool(self.premium)
513
+ if self.responses_count_enabled is not None:
514
+ params["responses_count_enabled"] = _bool(self.responses_count_enabled)
515
+
509
516
  return params
510
517
 
511
518
  def _get_vacancies(self, per_page: int = 100) -> list[VacancyItem]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hh-applicant-tool
3
- Version: 0.6.8
3
+ Version: 0.6.9
4
4
  Summary:
5
5
  Author: Senior YAML Developer
6
6
  Author-email: yamldeveloper@proton.me
@@ -11,7 +11,7 @@ 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=o7co4d3zc9sDCXAOjqs3dQe8_OoXU5M9PaiUtvfLxak,23590
14
+ hh_applicant_tool/operations/apply_similar.py,sha256=LqZl2j8a5RUzI9VQmBIOkSQmPZZl62hWEB05mcA5MYQ,23975
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
17
  hh_applicant_tool/operations/clear_negotiations.py,sha256=FG_43P5GWmfKUggkKZqDznQ2_iBJ3zrZtv8yEI2XOXQ,4527
@@ -26,7 +26,7 @@ hh_applicant_tool/operations/whoami.py,sha256=pNWJMmEQLBk3U6eiGz4CHcX7eXzDXcfezF
26
26
  hh_applicant_tool/telemetry_client.py,sha256=1EKZWc5kMx2yERW9SrR9vaf-OB6M_KKcMXeicH5YyY0,3834
27
27
  hh_applicant_tool/types.py,sha256=sQbt_vGXtWPRJ3UzcUkE87BTHOaGTsFxqdZa_qFghZE,864
28
28
  hh_applicant_tool/utils.py,sha256=3T4A2AykGqTwtGAttmYplIjHwFl3pNAcbWIVuA-OheQ,3080
29
- hh_applicant_tool-0.6.8.dist-info/METADATA,sha256=CTMbI2mzDnQZRxZ71qnP1yM-XZblyQmiQnZ49fypvtg,21401
30
- hh_applicant_tool-0.6.8.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
31
- hh_applicant_tool-0.6.8.dist-info/entry_points.txt,sha256=Vb7M2YaYLMtKYJZh8chIrXZApMzSRFT1-rQw-U9r10g,65
32
- hh_applicant_tool-0.6.8.dist-info/RECORD,,
29
+ hh_applicant_tool-0.6.9.dist-info/METADATA,sha256=vJhPJE35bjzd49jfJ2lpTzD8tDCSjMrL6gy5X-QObIY,21401
30
+ hh_applicant_tool-0.6.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
31
+ hh_applicant_tool-0.6.9.dist-info/entry_points.txt,sha256=Vb7M2YaYLMtKYJZh8chIrXZApMzSRFT1-rQw-U9r10g,65
32
+ hh_applicant_tool-0.6.9.dist-info/RECORD,,