Skip to content

Commit

Permalink
Fix distribution list API
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Jul 26, 2021
1 parent cf37127 commit fb66ff0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions conbench/api/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ def _get(self, benchmark_id):
except NotFound:
self.abort_404_not_found()
return get_distribution_history(
summary.run.commit.repository,
summary.run.commit.sha,
summary.case_id,
summary.context_id,
summary.run.machine.hash,
Expand Down
4 changes: 1 addition & 3 deletions conbench/entities/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class DistributionSerializer:
many = _Serializer(many=True)


def get_distribution_history(repository, sha, case_id, context_id, machine_hash):
def get_distribution_history(case_id, context_id, machine_hash):
return (
Session.query(
Distribution.id,
Expand All @@ -98,8 +98,6 @@ def get_distribution_history(repository, sha, case_id, context_id, machine_hash)
Distribution.last_timestamp,
)
.filter(
Distribution.repository == repository,
Distribution.sha == sha,
Distribution.case_id == case_id,
Distribution.context_id == context_id,
Distribution.machine_hash == machine_hash,
Expand Down

0 comments on commit fb66ff0

Please sign in to comment.