Commits

zsp042 committed 0c7c573

fix

Comments (0)

Files changed (1)

     #for i in Zsite.where(cid=CID_USER).where("state>=%s"%STATE_ACTIVE):
     #    print i.id
 #    print mail_by_user_id(10128296)
+    #
+    mail = 'kilnt.huo@gmail.com'
+    print UserMail.raw_sql('select count(1) from user_mail where mail=%s', mail).fetchone()
     from model.vps_sell import VpsOne
-    user_id = user_id_by_mail("heeyer@gmail.com")
-    print user_id
-    print VpsOne.get(user_id=user_id)
-    print VpsOne.get(17).user_id
-    
+#    c = UserMail.raw_sql('update user_mail set user_id = %s where mail=%s',10077177, mail)
+#    print c 
+#    vps = VpsOne.get(377)
+#    vps.user_id = 10077177
+#    vps.save()
+