From aca28171848d6f958b6d78b879a73a5f89c849f4 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 8 Apr 2019 11:24:45 +0100 Subject: [PATCH] The active flag in the query was excluding some services. The active flag wasn't always used, plus a service should always be active on the first version of the service. --- app/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/commands.py b/app/commands.py index b3bbca503..808852218 100644 --- a/app/commands.py +++ b/app/commands.py @@ -771,8 +771,7 @@ def get_letter_details_from_zips_sent_file(file_paths): @notify_command(name='associate-services-to-organisations') def associate_services_to_organisations(): services = Service.get_history_model().query.filter_by( - version=1, - active=True + version=1 ).all() for s in services: