1. Yang Zhang
  2. py4u-opensource


Yang Zhang  committed 1bf661e

fetone should be a funciton

  • Participants
  • Parent commits 4bf1d1b
  • Branches default

Comments (0)

Files changed (1)

File manager.py

View file
             linker = 'http://' + linker
         c.execute("SELECT id FROM post WHERE title=:title and link=:link",\
                                 {"title":title, 'link':linker})
-        if(c.fetchone is not None):
+        if(c.fetchone() is not None):
         c.execute("INSERT INTO post(title,link,post_date,posterid) VALUES (?,?,?,?)",\