Merge pull request #2447 from alphagov/associate-all-services

The active flag in the query was excluding some services.
This commit is contained in:
Rebecca Law
2019-04-08 11:37:24 +01:00
committed by GitHub

View File

@@ -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: