From 7eb90eb7cd9b1fddd5953483e9807e76c88a0e8f Mon Sep 17 00:00:00 2001 From: Moritz Kiefer Date: Fri, 1 Feb 2013 23:51:25 +0100 Subject: [PATCH] rename Post.fetch_data() to Post.get_data() --- diaspy/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diaspy/models.py b/diaspy/models.py index 6e29f73..526d501 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -25,7 +25,7 @@ class Post: self.post_id = post_id - def fetch_data(self): + def get_data(self): r = self._client.session.get(self._client.pod + '/posts/' + self.post_id + @@ -63,7 +63,7 @@ class Post: data = {'authenticity_token': self._client.get_token()} - post_data = self.fetch_data() + post_data = self.get_data() r = self._client.session.delete(self._client.pod + '/posts/' + self.post_id + @@ -81,7 +81,7 @@ class Post: """ - post_data = self.fetch_data() + post_data = self.get_data() data = {'root_guid': post_data['guid'], 'authenticity_token': self._client.get_token()} -- 2.25.1