Skip to content

Commit

Permalink
Fix floyd data status
Browse files Browse the repository at this point in the history
  • Loading branch information
ReDeiPirati authored and houqp committed Oct 30, 2018
1 parent 8b88a2e commit 6dde52e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions floyd/client/data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from clint.textui.progress import Bar as ProgressBar

from floyd.manager.auth_config import AuthConfigManager
from floyd.manager.data_config import DataConfigManager
from floyd.exceptions import FloydException, BadRequestException
from floyd.client.base import FloydHttpClient
from floyd.model.data import Data
Expand Down Expand Up @@ -75,11 +75,12 @@ def get(self, id):

def get_all(self):
try:
access_token = AuthConfigManager.get_access_token()
data_config = DataConfigManager.get_config()

response = self.request("GET",
self.url,
params={"module_type": "data",
"username": access_token.username})
"family_id": data_config.family_id})
data_dict = response.json()
return [Data.from_dict(data) for data in data_dict]
except FloydException as e:
Expand Down

0 comments on commit 6dde52e

Please sign in to comment.