Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
396 views
in Q2A Core by
I've created a simple plugin to import questions and answers from a CSV file. It works fine, all questions are imported in the DB with their answer.  But they don't all show up in the list and some are duplicated across pages (so overall, I have the appropriate number of questions) I suspect this is a problem with the fact that all questions and answers have the same timestamp, is it possible? How could I fix this?
by
My theory seems right: I've changed the timestamp so they're all different and now all my questions are shown and there's no more duplicate.
by
edited by
The problem is with qa-page-home which request the questions from the DB and then applies its own sorting before removing extra questions. Since its sorting doesn't produce the same results than the DB, wrong questions are left out. To avoid that problem, I'v added a timeout so my timestamps are different.

Please log in or register to answer this question.

...