Commits

David Xie  committed 60f445a

modify submit report on services

  • Participants
  • Parent commits 7013744

Comments (0)

Files changed (1)

 
 class submitReport:
     def POST(self):
-        i = web.input(email=None, mallId='NULL',
-                storeId='NULL', content=None)
-        if not i.storeId:
-            i.storeId = 'NULL'
+        i = web.input(email=None, subject=1,
+                company='NULL', content=None)
         if i.email and i.content:
-            id = db.insert('reports',
+            id = db.insert('contacts',
                 email = i.email,
-                mallId = i.mallId,
-                storeId = i.storeId,
                 content = i.content,
-                type = 1,
+                subject = i.subject,
+                company = i.company,
                 createdTime = time.time())
             if id:
                 return 'success'