Skip to content

Commit

Permalink
list comprehension not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Apr 24, 2019
1 parent 4d4fbbf commit ca1b80b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def get(self, dataset):
user = self.current_user
dataset = db.get_dataset(dataset)

versions = [ver for ver in (db.DatasetVersion.select(db.DatasetVersion.version,
db.DatasetVersion.available_from)
.where(db.DatasetVersion.dataset == dataset))]
versions = (db.DatasetVersion.select(db.DatasetVersion.version,
db.DatasetVersion.available_from)
.where(db.DatasetVersion.dataset == dataset))
logging.info("ListDatasetVersions")
data = []
found_current = False
Expand Down

0 comments on commit ca1b80b

Please sign in to comment.