aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-02-21 11:52:08 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-02-21 11:52:08 +0100
commitefac6e71b3203bace04f3b13deab4552daf863f3 (patch)
treec3035a7c132e0ceb5ae9fd71de3edb08debf2d89
parent8abb9e2d16e56f01699f2bb3e1dd7bda36385aaf (diff)
downloadroadmap-efac6e71b3203bace04f3b13deab4552daf863f3.tar.gz
Fix indentation problems.
Change-Id: I87e72e2ba337bae46ec4a879d6178070546b9ead
-rw-r--r--roadmap/helpers.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/roadmap/helpers.py b/roadmap/helpers.py
index 9183727..13a1584 100644
--- a/roadmap/helpers.py
+++ b/roadmap/helpers.py
@@ -152,18 +152,18 @@ def create_or_update(issue, options, jira=None):
upstream_development_name = settings.UPSTREAM_DEVELOPMENT
if status.name == upstream_development_name:
if hasattr(issue, "changelog"):
- for history in issue.changelog.histories:
- for item in history.items:
- if (item.field == "status"
- and item.toString == upstream_development_name):
- cardStart = datetime.strptime(
- history.created,
- "%Y-%m-%dT%H:%M:%S.000+0000").isoformat()
- if (item.field == "status"
- and item.toString == "Closed"):
- cardEnd = datetime.strptime(
- history.created,
- "%Y-%m-%dT%H:%M:%S.000+0000").isoformat()
+ for history in issue.changelog.histories:
+ for item in history.items:
+ if (item.field == "status" and
+ item.toString == upstream_development_name):
+ cardStart = datetime.strptime(
+ history.created,
+ "%Y-%m-%dT%H:%M:%S.000+0000").isoformat()
+ if (item.field == "status" and
+ item.toString == "Closed"):
+ cardEnd = datetime.strptime(
+ history.created,
+ "%Y-%m-%dT%H:%M:%S.000+0000").isoformat()
if not cardEnd and fixVersion:
if fixVersion.name != "ONGOING":
cardEnd = fixVersion.fix_date