Skip to content

Commit

Permalink
Merge 291fbdc into 60b0dc3
Browse files Browse the repository at this point in the history
  • Loading branch information
zefciu committed Jun 17, 2014
2 parents 60b0dc3 + 291fbdc commit c7b10d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ralph/cmdb/integration/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_ci(**kwargs):
cis = []
else:
cis = [ci for ci in [
get_ci(id=id) for id in issue['cis']
get_ci(uid=uid) for uid in issue['cis']
] if ci]

obj = classtype.objects.filter(jira_id=issue.get('key')).all()[:1]
Expand Down Expand Up @@ -201,9 +201,8 @@ def fetch_all(self, type, cutoff_date=None):
]
jql = ('type={}'.format(type))
if cutoff_date is not None:
jql += " AND status CHANGED AFTER '{}'".format(
cutoff_date.strftime('%Y/%m/%d %H:%m')
)
jql += " AND (status CHANGED AFTER '{c}' OR created > '{c}')".\
format(c=cutoff_date.strftime('%Y/%m/%d %H:%m'))
params = dict(jql=jql)
offset = 0
total = None
Expand Down

0 comments on commit c7b10d0

Please sign in to comment.