mirror of
https://github.com/clearml/clearml-server
synced 2025-04-16 21:41:37 +00:00
Merge pull request #2 from evg-allegro/master
Fixes to the requirements files
This commit is contained in:
commit
e9d4141460
@ -1 +1,2 @@
|
||||
Flask
|
||||
Flask
|
||||
pyhocon>=0.3.35
|
@ -285,7 +285,7 @@ class EventBLL(object):
|
||||
es_res = self.es.search(index=es_index, body=es_req, scroll="1h")
|
||||
|
||||
events = [hit["_source"] for hit in es_res["hits"]["hits"]]
|
||||
next_scroll_id = es_res["_scroll_id"]
|
||||
next_scroll_id = es_res.get("_scroll_id")
|
||||
total_events = es_res["hits"]["total"]
|
||||
|
||||
return events, next_scroll_id, total_events
|
||||
@ -365,7 +365,7 @@ class EventBLL(object):
|
||||
)
|
||||
|
||||
events = [doc["_source"] for doc in es_res.get("hits", {}).get("hits", [])]
|
||||
next_scroll_id = es_res["_scroll_id"]
|
||||
next_scroll_id = es_res.get("_scroll_id")
|
||||
total_events = es_res["hits"]["total"]
|
||||
|
||||
return TaskEventsResult(
|
||||
|
@ -25,3 +25,4 @@ validators>=0.12.4
|
||||
fastjsonschema>=2.8
|
||||
boltons>=19.1.0
|
||||
semantic_version>=2.6.0,<3
|
||||
furl>=2.0.0
|
||||
|
@ -5,16 +5,16 @@ import json
|
||||
import unittest
|
||||
|
||||
import es_factory
|
||||
from tests.api_client import APIClient
|
||||
from config import config
|
||||
from tests.automated import TestService
|
||||
|
||||
log = config.logger(__file__)
|
||||
|
||||
|
||||
class TestDatasetsService(unittest.TestCase):
|
||||
class TestDatasetsService(TestService):
|
||||
|
||||
def setUp(self):
|
||||
self.api = APIClient(base_url="http://localhost:5100/v1.0")
|
||||
def setUp(self, version="1.0"):
|
||||
super(TestDatasetsService, self).setUp(version=version)
|
||||
self.created_tasks = []
|
||||
|
||||
self.task = dict(
|
||||
|
@ -1 +1,2 @@
|
||||
numpy>=1.12.1
|
||||
parameterized>=0.7.0
|
||||
|
@ -1,5 +1,4 @@
|
||||
Jinja2>=2.9.6
|
||||
setuptools>=33,<34
|
||||
requests>=2.0
|
||||
Werkzeug==0.12.2
|
||||
Flask==0.12.2
|
||||
|
Loading…
Reference in New Issue
Block a user