Skip to content

Conversation

@aweyl
Copy link
Contributor

@aweyl aweyl commented Oct 3, 2017

Moved the ResultQuery class and exposed the statistics data as properties.
(Those changes in redisgraph-py and redis-graph will work also without the changes in the C code because it will retrieve the data as 0s)


def __init__(self, result_set, statistics):
self.result_set = result_set
(self.statistics, self.parsed_statistics) = \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just say self.statistics = statistics?

print(stat)

def _retrieve_data_from_statistics(self, statistics):
parsed_statistics = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't you prefer to have a class variable foreach statistic?
e.g. self.labels_added = self._get_value(self.LABELS_ADDED)

Moved the ResultQuery class and exposed the statistics data as properties.
(Those changes in redisgraph-py and redis-graph will work also without the changes in the C code because it will retrieve the data as 0s)
@aweyl aweyl force-pushed the change_query_result branch from aaaf796 to f20a22d Compare October 4, 2017 07:35
@swilly22 swilly22 merged commit 7e02ab4 into RedisGraph:master Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants