Commits

zsp042 committed 34caf7a

f

Comments (0)

Files changed (1)

model/user_mail.py

     print UserMail.raw_sql('select count(1) from user_mail where mail=%s', mail).fetchone()
     print UserMail.raw_sql("select user_id from user_mail where mail=%s", mail).fetchone()
     from model.vps_sell import VpsOne
-#    c = UserMail.raw_sql('update user_mail set user_id = %s where mail=%s',10077177, mail)
+    print user_by_mail(mail).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()
+    vps = VpsOne.get(377)
+    vps.user_id = 10077177
+    vps.save()
 
+    mc_user_id_by_mail.delete(mail)
+