Move graphql_to_poll_option -> PollOption._from_graphql

This commit is contained in:
Mads Marquart
2019-03-07 19:47:36 +01:00
parent 3440039610
commit e51ce99c1a
4 changed files with 26 additions and 25 deletions

View File

@@ -1248,7 +1248,7 @@ class Client(object):
self.req_url.GET_POLL_OPTIONS, data, fix_request=True, as_json=True
)
return [graphql_to_poll_option(m) for m in j["payload"]]
return [PollOption._from_graphql(m) for m in j["payload"]]
def fetchPlanInfo(self, plan_id):
"""