Skip to content

Commit

Permalink
All Molnix positions instead of only /open
Browse files Browse the repository at this point in the history
  • Loading branch information
szabozoltan69 committed Jun 12, 2024
1 parent 85694a2 commit eb26600
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/management/commands/sync_molnix.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_unique_tags(deployments, open_positions):
if tag["id"] not in tag_ids:
tags.append(tag)
tag_ids.append(tag["id"])
for position in open_positions:
for position in open_positions: # FIXME: paginated
for tag in position["tags"]:
if tag["id"] not in tag_ids:
tags.append(tag)
Expand Down
4 changes: 2 additions & 2 deletions api/molnix_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def get_tag_groups(self, id):
return self.call_api(path="tags/edit/%d" % id)["tag"]["groups"]

def get_open_positions(self):
# return self.call_api_paginated(path='positions', response_key='positions')
return self.call_api(path="positions/open")
# return self.call_api_paginated(path="positions", response_key="positions")
return self.call_api_paginated(path="positions", response_key="positions", params={"limit": 99999})

def get_deployments(self):
deployments_filter = {
Expand Down

0 comments on commit eb26600

Please sign in to comment.