コード例 #1
0
 def run(self):
     sqlDb = Helper()
     mongoDb = Reserve()
     # mongoDb.clearBuy()
     d = int(self.day)
     for h in range(9, 23):
         Domain.BUY_HOUR = h
         for m in range(0, 60):
             res = sqlDb.buy(d, h, m)
             mongoDb.storeBuy(d, h, m, res)
             Domain.BUY_MIN = m
     sqlDb.close()