From 7d6a2dcece8df158b52caf04b3f0dbde23181c93 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 26 Jun 2016 09:55:16 +0000 Subject: gn_server: simplify --- wqflask/base/data_set.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index e0bf5f40..d0ec3f3c 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -477,8 +477,6 @@ class DataSet(object): """ - def helper(r): - return r["id"],r["name"],r["full_name"],r["short_name"],r["data_scale"],r["tissue"] try: if self.type == "ProbeSet": @@ -495,7 +493,9 @@ WHERE ProbeSetFreeze.public > %s AND ProbeSetFreeze.ProbeFreezeId = ProbeFreeze.Id AND ProbeFreeze.TissueId = Tissue.Id AND (ProbeSetFreeze.Name = '%s' OR ProbeSetFreeze.FullName = '%s' OR ProbeSetFreeze.ShortName = '%s') - """ % (query_args),"/dataset/"+self.name+".json",helper) + """ % (query_args),"/dataset/"+self.name+".json", + lambda r: (r["id"],r["name"],r["full_name"],r["short_name"],r["data_scale"],r["tissue"]) + ) else: query_args = tuple(escape(x) for x in ( (self.type + "Freeze"), -- cgit v1.2.3