Skip to main content
replaced http://stackapps.com/ with https://stackapps.com/
Source Link

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff 0a5c60f71310757a4c1de6547cf113c7d6834e85
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..4a17b10 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -492,10 +492,12 @@ unlike on the actual site, you will receive an error rathe
        
        def questions(self, ids, **kw):
                """Retrieves a set of the comments with the IDs specified in the
+               kw["answers"] = "true"
                return self._get(Question, ids, 'questions', kw)
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the changethe good points behind the change.

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff 0a5c60f71310757a4c1de6547cf113c7d6834e85
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..4a17b10 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -492,10 +492,12 @@ unlike on the actual site, you will receive an error rathe
        
        def questions(self, ids, **kw):
                """Retrieves a set of the comments with the IDs specified in the
+               kw["answers"] = "true"
                return self._get(Question, ids, 'questions', kw)
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff 0a5c60f71310757a4c1de6547cf113c7d6834e85
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..4a17b10 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -492,10 +492,12 @@ unlike on the actual site, you will receive an error rathe
        
        def questions(self, ids, **kw):
                """Retrieves a set of the comments with the IDs specified in the
+               kw["answers"] = "true"
                return self._get(Question, ids, 'questions', kw)
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

added 296 characters in body
Source Link
badp
  • 945
  • 6
  • 23

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff HEAD 0a5c60f71310757a4c1de6547cf113c7d6834e85
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..e36dc534a17b10 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -496492,610 +496+492,712 @@ unlike on the actual site, you will receive an error ratherrathe
        
        def questions(self, ids, **kw):
                """Retrieves a set of the comments with the IDs specified in the
+               kw["answers"] = "true"
                return self._get(Question, ids, 'questions', kw)
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff HEAD 
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..e36dc53 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -496,6 +496,7 @@ unlike on the actual site, you will receive an error rather 
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff 0a5c60f71310757a4c1de6547cf113c7d6834e85
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..4a17b10 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -492,10 +492,12 @@ unlike on the actual site, you will receive an error rathe
        
        def questions(self, ids, **kw):
                """Retrieves a set of the comments with the IDs specified in the
+               kw["answers"] = "true"
                return self._get(Question, ids, 'questions', kw)
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

added 694 characters in body; added 1 characters in body; added 177 characters in body
Source Link
badp
  • 945
  • 6
  • 23

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff HEAD 
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..e36dc53 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -496,6 +496,7 @@ unlike on the actual site, you will receive an error rather 
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

Two of the demo scripts currently do not work because there is no 'answers' field in the json :(

It might be an ugly workaround, but for now this diff does the trick:

badp@delta:~/Py-StackExchange$ git diff HEAD 
diff --git a/stackexchange.py b/stackexchange.py
index 959cf3e..e36dc53 100644
--- a/stackexchange.py
+++ b/stackexchange.py
@@ -496,6 +496,7 @@ unlike on the actual site, you will receive an error rather 
        
        def recent_questions(self, **kw):
                """Returns the set of the most recent questions on the site, by 
+               kw["answers"] = "true"
                return self.build('questions', Question, 'questions', kw)
        
        def users_with_badge(self, bid, **kw):

However, this fails to take account of the good points behind the change.

added 87 characters in body; deleted 1999 characters in body
Source Link
badp
  • 945
  • 6
  • 23
Loading
Source Link
badp
  • 945
  • 6
  • 23
Loading