From f0a5a95241ca1289f65e6d5d8953291f9ebbeda6 Mon Sep 17 00:00:00 2001 From: Nathaniel Kofalt <nathaniel@kofalt.com> Date: Mon, 7 Dec 2015 16:40:07 -0600 Subject: [PATCH] Small tweaks --- api/jobs.py | 2 +- api/rules.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/jobs.py b/api/jobs.py index b3725e03..14b6c1dc 100644 --- a/api/jobs.py +++ b/api/jobs.py @@ -43,7 +43,7 @@ ALGORITHMS = [ "dcm2nii" ] -# Holds all details of a scitran file needed to use that as an input a formula. +# A FileInput tuple holds all the details of a scitran file that needed to use that as an input a formula. FileInput = namedtuple('input', ['container_type', 'container_id', 'filename', 'filehash']) # Convert a dictionary to a FileInput diff --git a/api/rules.py b/api/rules.py index c4cb74bc..f8adef53 100644 --- a/api/rules.py +++ b/api/rules.py @@ -122,7 +122,7 @@ def create_jobs(db, container, container_type, file_): # Get configured rules for this project project = get_project_for_container(db, container) - rules = project. get('rules', []) + rules = project.get('rules', []) # Add hardcoded rules that cannot be removed or changed for hardcoded_rule in HARDCODED_RULES: -- GitLab