diff --git a/data.db b/data.db index 8b87d19..1adf6cc 100644 Binary files a/data.db and b/data.db differ diff --git a/搬家工具/同步器/sync.py b/搬家工具/同步器/sync.py index 81b20bf..626f733 100644 --- a/搬家工具/同步器/sync.py +++ b/搬家工具/同步器/sync.py @@ -73,7 +73,7 @@ cursor = c.execute(''' SELECT Q.QUIZ,OPTION,SCHOOL,TYPE,CONTRIBUTOR,ACCESS_TIME FROM QUSTION Q LEFT JOIN ( SELECT QUIZ,MAX(ACCESS_TIME) ACCESS_TIME FROM ACCESS_LOG GROUP BY QUIZ HAVING ACCESS_TIME = MAX(ACCESS_TIME) -) A ON Q.QUIZ like A.QUIZ; +) A ON Q.QUIZ = A.QUIZ; ''') questions1 = {} for row in cursor: @@ -82,7 +82,7 @@ cursor = c2.execute(''' SELECT Q.QUIZ,OPTION,SCHOOL,TYPE,CONTRIBUTOR,ACCESS_TIME FROM QUSTION Q LEFT JOIN ( SELECT QUIZ,MAX(ACCESS_TIME) ACCESS_TIME FROM ACCESS_LOG GROUP BY QUIZ HAVING ACCESS_TIME = MAX(ACCESS_TIME) -) A ON Q.QUIZ like A.QUIZ; +) A ON Q.QUIZ = A.QUIZ; ''') questions2 = {} for row in cursor: