Skip to content

Commit

Permalink
feat: send requests if handled_by_ahjo_automation
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Jun 12, 2024
1 parent d660066 commit 70bc649
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ def get_applications_for_request(
False,
)

return applications
# Only send applications that have automation enabled
applications_with_ahjo_automation = applications.filter(
handled_by_ahjo_automation=True
)

return applications_with_ahjo_automation

def handle(self, *args, **options):
try:
Expand Down Expand Up @@ -160,6 +165,7 @@ def run_requests(
request_handler = self._get_request_handler(ahjo_request_type)

counter = 0

for application in applications:
sent_application, response_text = request_handler(
application, ahjo_auth_token
Expand Down

0 comments on commit 70bc649

Please sign in to comment.