示例#1
0
 def getEvaluationModuleResult(hash, evaluations_module,
                               evaluations_result):
     db = DB()
     rows = DB_Evaluations.getEvaluationModuleResult(
         db.cursor, hash, evaluations_module, evaluations_result)
     db.DBDisconnect()
     return rows
示例#2
0
 def getResultsIdsByStudyContact(results_studies_id, results_contact):
     db = DB()
     rows = DB_Results.getResultsIdsByStudyContact(db.cursor,
                                                   results_studies_id,
                                                   results_contact)
     db.DBDisconnect()
     return rows
示例#3
0
 def getClassificationResultValue(hash, classifications_classification,
                                  classifications_result):
     db = DB()
     rows = DB_Evaluations.getClassificationResultValue(
         db.cursor, hash, classifications_classification,
         classifications_result)
     db.DBDisconnect()
     return rows
示例#4
0
 def insertResult(query_id, study_id, job_id, upload, ip, hash, main_hash,
                  contact_hash, search_engine, url, main, contact, today,
                  timestamp, progress, results_position):
     db = DB()
     DB_Results.insertResult(db.cursor, query_id, study_id, job_id, upload,
                             ip, hash, main_hash, contact_hash,
                             search_engine, url, main, contact, today,
                             timestamp, progress, results_position)
     db.DBDisconnect()
示例#5
0
 def deleteStudy(study_id):
     db = DB()
     DB_Studies.deleteStudy(db.cursor, study_id)
     db.DBDisconnect()
示例#6
0
 def insertStudy(study_name, study_description, today, study_se):
     db = DB()
     DB_Studies.insertStudy(db.cursor, study_name, study_description, today,
                            study_se)
     db.DBDisconnect()
示例#7
0
 def getStudybyName(study_name):
     db = DB()
     rows = DB_Studies.getStudybyName(db.cursor, study_name)
     db.DBDisconnect()
     return rows
示例#8
0
 def getStudiesScraper():
     db = DB()
     rows = DB_Studies.getStudiesScraper(db.cursor)
     db.DBDisconnect()
     return rows
示例#9
0
 def getLastPosition(query_id, study_id, search_engine, results_position):
     db = DB()
     rows = DB_Results.getLastPosition(db.cursor, query_id, study_id,
                                       search_engine, results_position)
     db.DBDisconnect()
     return rows
示例#10
0
 def getSERP(query_id):
     db = DB()
     DB_Results.getSERP(db.cursor, query_id)
     db.DBDisconnect()
示例#11
0
 def getRecentResultByHash(hash):
     db = DB()
     rows = DB_Results.getRecentResultByHash(db.cursor, hash)
     db.DBDisconnect()
     return rows
示例#12
0
 def updateContactProgress(results_contact, results_id):
     db = DB()
     DB_Results.updateContactProgress(db.cursor, results_contact,
                                      results_id)
     db.DBDisconnect()
示例#13
0
 def insertContactResult(contact_url, contact_hash, results_id):
     db = DB()
     DB_Results.insertContactResult(db.cursor, contact_url, contact_hash,
                                    results_id)
     db.DBDisconnect()
示例#14
0
 def getResultById(results_id):
     db = DB()
     rows = DB_Results.getResultById(db.cursor, results_id)
     db.DBDisconnect()
     return rows
示例#15
0
 def getAllResultsIdsByStudy(results_studies_id):
     db = DB()
     rows = DB_Results.getAllResultsIdsByStudy(db.cursor,
                                               results_studies_id)
     db.DBDisconnect()
     return rows
示例#16
0
 def getSource(hash):
     db = DB()
     rows = DB_Results.getSource(db.cursor, hash)
     db.DBDisconnect()
     return rows
示例#17
0
 def getURL(query_id, study_id, results_url, results_se):
     db = DB()
     rows = DB_Results.getURL(db.cursor, query_id, study_id, results_url,
                              results_se)
     db.DBDisconnect()
     return rows
示例#18
0
 def getResults():
     db = DB()
     rows = DB_Results.getResults(db.cursor)
     db.DBDisconnect()
     return rows
示例#19
0
 def insertSERP(query_id, serp, serp_scraper, today):
     db = DB()
     DB_Results.insertSERP(db.cursor, query_id, serp, serp_scraper, today)
     db.DBDisconnect()
示例#20
0
 def getSourcesSpeedNULL():
     db = DB()
     rows = DB_Results.getSourcesSpeedNULL(db.cursor)
     db.DBDisconnect()
     return rows
示例#21
0
 def deleteResultsNoScrapers(queries_id, results_se):
     db = DB()
     DB_Results.deleteResultsNoScrapers(db.cursor, queries_id, results_se)
     db.DBDisconnect()
示例#22
0
 def getLastPosition(query_id, study_id, results_se, today):
     db = DB()
     rows = DB_Results.getLastPosition(db.cursor, query_id, study_id,
                                       results_se, today)
     db.DBDisconnect()
     return rows
示例#23
0
 def getStudy(study_id):
     db = DB()
     rows = DB_Studies.getStudy(db.cursor, study_id)
     db.DBDisconnect()
     return rows
示例#24
0
 def countClassifiedResultsbyQuery(results_queries_id):
     db = DB()
     rows = DB_Results.countClassifiedResultsbyQuery(
         db.cursor, results_queries_id)
     db.DBDisconnect()
     return rows
示例#25
0
 def getStudybyNamenotID(study_name, study_id):
     db = DB()
     rows = DB_Studies.getStudybyNamenotID(db.cursor, study_name, study_id)
     db.DBDisconnect()
     return rows
示例#26
0
 def countClassifiedResultsbyStudySE(studies_id, se):
     db = DB()
     rows = DB_Results.countClassifiedResultsbyStudySE(
         db.cursor, studies_id, se)
     db.DBDisconnect()
     return rows
示例#27
0
 def updateStudy(studies_name, studies_comment, studies_se, studies_id):
     db = DB()
     DB_Studies.updateStudy(db.cursor, studies_name, studies_comment,
                            studies_se, studies_id)
     db.DBDisconnect()
示例#28
0
 def countFailedResultsbyStudy(studies_id):
     db = DB()
     rows = DB_Results.countFailedResultsbyStudy(db.cursor, studies_id)
     db.DBDisconnect()
     return rows
示例#29
0
 def deleteunassignedResults():
     db = DB()
     DB_Studies.deleteunassignedResults(db.cursor)
     db.DBDisconnect()
示例#30
0
 def getResultHashesOnMain(main_hash):
     db = DB()
     rows = DB_Results.getResultHashesOnMain(db.cursor, main_hash)
     db.DBDisconnect()
     return rows