1. zuroc
  2. zpage

Commits

zsp042  committed 8629077

fix

  • Participants
  • Parent commits 6c6a3de
  • Branches 42qu

Comments (0)

Files changed (2)

File model/vps_host.py

View file
     ram = vps.ram
     hd = vps.hd
     if data_center == 2:
-        host = 5
+        host = VpsHost.get(5)
     else:
         host = VpsHost.where(data_center=data_center).where(
             'ram_remain>%s and hd_remain>%s', ram, hd
     #host.hd_count= 3550
     #host.save()
 
-    vps_host_rebuild()
+    #vps_host_rebuild()
     #from model.vps_sell import VpsOne, VPS_STATE_RUN
 
     pass

File model/vps_sell.py

View file
 
 if __name__ == '__main__':
     pass
-    user_id_list = []
-    for i in VpsOne.where(host_id=4, user_id=10000000):
-        user_id_list.append(i.user_id)
-    print user_id_list
+    #order = VpsOrder.get(484)
+    #vps_order_auto_open(order)
+#    user_id_list = []
+#    for i in VpsOne.where(host_id=4, user_id=10000000):
+#        user_id_list.append(i.user_id)
+#    print user_id_list
 
     #vps_auto_open(10000000, 10000000, 1, 1, 2, 11)