From b7ec322a6b64637e1d1a06c9975373c3888eaa04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matic=20Perov=C5=A1ek?= Date: Wed, 18 Mar 2015 12:22:52 +0100 Subject: [PATCH] fix [mapper fix when the target table has exactly two attributes and no features are produced; isprogramirano] bolje isprogramirano --- workflows/mysql/converters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflows/mysql/converters.py b/workflows/mysql/converters.py index ecef477..458b823 100644 --- a/workflows/mysql/converters.py +++ b/workflows/mysql/converters.py @@ -117,7 +117,9 @@ class RSD_Converter(ILP_Converter): ''' Converts the database context to RSD inputs. ''' - def all_examples(self, target=self.db.target_table): + def all_examples(self, target=None): + if not target: + target = self.db.target_table examples = self.db.rows(target, [self.db.target_att, self.db.pkeys[target]]) return '\n'.join(["%s('%s', %s)." % (target, cls, pk) for cls, pk in examples]) -- GitLab