avoid duplicate query
This commit is contained in:
parent
28159f6a47
commit
1382934404
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ def update_end_events():
|
|||
n_cached = 0
|
||||
tag_last = {}
|
||||
updates = []
|
||||
for repo in query.execute():
|
||||
for repo in repos:
|
||||
tag_id = repo['tag_id']
|
||||
# use cache to avoid redundant calls
|
||||
if tag_id in tag_last and tag_last[tag_id] <= repo['create_event']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue