OSDN Git Service

rename database_ids & some variables in order to understand easily
[amulettoolsmh4/main.git] / model / seedsholder.py
similarity index 76%
rename from model/randomseedsholder.py
rename to model/seedsholder.py
index 54be9e5..6456045 100644 (file)
@@ -5,19 +5,19 @@
 
 import db_supports
 
-class RandomSeedsHolder(object):
-    u""" ランダムのSeed値を保持するクラス """
+class SeedsHolder(object):
+    u""" Seed値を保持するクラス """
     def __init__(self, seed_list):
         u""" seed_list: list of seed
         """
         self.seed_set = set(seed_list)
 
-    def get_where_sql(self, remove_where=False):
+    def get_where_in_sql(self, remove_where=False):
         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(
-                    col=db_supports.SECOND_COL_RANDOM_SEED,
+                    col=db_supports.SEED2_SKILL2_COL_SEED2,
                     in_phrase=u",".join(uni_list))
 
             if remove_where: