Retoques menores en capturer y explorer. De vuelta al testing.
This commit is contained in:
parent
6342a95f40
commit
e0216060b9
4 changed files with 190 additions and 68 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import uuid
|
||||
from core.mysql_wrapper import get_tasksdb
|
||||
|
||||
class CapturingTasksInterface:
|
||||
|
|
@ -36,9 +37,9 @@ class CapturingTasksInterface:
|
|||
"""
|
||||
cursor = self.tasksdb.query(query_statement, dictionary=True)
|
||||
|
||||
if cursor.rowcount:
|
||||
try:
|
||||
return cursor.fetchone()
|
||||
else:
|
||||
except:
|
||||
return None
|
||||
|
||||
def update_capturing_task(self, uuid, uuid_exploring, status, ad_url):
|
||||
|
|
@ -62,7 +63,7 @@ class CapturingTasksInterface:
|
|||
query_statement = """SELECT TIME_TO_SEC(TIMEDIFF(now(), write_time))
|
||||
FROM capturing_tasks_logs
|
||||
WHERE status = 'Loading'
|
||||
ORDER BY write_time
|
||||
ORDER BY write_time DESC
|
||||
LIMIT 1
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue