Commits

Yang Zhang  committed 1bf661e

fetone should be a funciton

  • Participants
  • Parent commits 4bf1d1b

Comments (0)

Files changed (1)

             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):
             continue
         c.execute("INSERT INTO post(title,link,post_date,posterid) VALUES (?,?,?,?)",\
                                 (title,linker,datetime.datetime.now(),0))