zsp042 avatar zsp042 committed 8629077

fix

Comments (0)

Files changed (2)

model/vps_host.py

     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

model/vps_sell.py

 
 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)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.