1. zuroc
  2. zpage

Commits

沈鹏 张  committed 61f2ff8

f

  • Participants
  • Parent commits 34caf7a
  • Branches 42qu

Comments (0)

Files changed (1)

File model/user_mail.py

View file
  • Ignore whitespace
     mail = 'kilnt.huo@gmail.com'
     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
+    from model.vps_sell import VpsOne, vps_one_count_by_user_id 
     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
+    print vps, vps.state
     vps.save()
 
     mc_user_id_by_mail.delete(mail)
-
+    print vps_one_count_by_user_id(10077177)