Skip to content

Commit

Permalink
data: minor improvement to NestedBuildDataRetriever.get_build_dict
Browse files Browse the repository at this point in the history
Only get needed builder_id instead of whole dict
  • Loading branch information
tdesveaux committed Jul 9, 2024
1 parent 34ba98c commit a1a79e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions master/buildbot/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ async def get_build_dict(self):
return self.build_dict

if 'build_number' in self.args:
builder_dict = await self.get_builder_dict()
builder_id = await self.get_builder_id()

if builder_dict is None:
if builder_id is None:
self.build_dict = None
return None

self.build_dict = await self.master.db.builds.getBuildByNumber(
builderid=builder_dict['id'], number=self.args['build_number']
builderid=builder_id, number=self.args['build_number']
)
return self.build_dict

Expand Down

0 comments on commit a1a79e9

Please sign in to comment.