OSDN Git Service

add support functions to db accessor
[amulettoolsmh4/main.git] / model / randomseedsholder.py
index 0915897..54be9e5 100644 (file)
@@ -16,14 +16,14 @@ class RandomSeedsHolder(object):
         u""" SQLのWhere文に変換する(IN句) """
         if len(self.seed_set) >= 1:
             uni_list = [u"{0}".format(x) for x in self.seed_set]
-            sql = u"{col} IN({in_phrase})".format(
+            sql = u" {col} IN({in_phrase})".format(
                     col=db_supports.SECOND_COL_RANDOM_SEED,
                     in_phrase=u",".join(uni_list))
 
             if remove_where:
                 return sql
             else:
-                return u" where " + sql
+                return u" where" + sql
         else:
             return ""