mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing broken getsatisfaction community feedback.
This commit is contained in:
parent
4f3fef424d
commit
d0a20bd941
1 changed files with 4 additions and 1 deletions
|
@ -262,7 +262,10 @@ class MFeedback(mongo.Document):
|
|||
except (urllib2.HTTPError), e:
|
||||
logging.debug(" ***> Failed to collect feedback: %s" % e)
|
||||
return
|
||||
data = json.decode(data[1:-1])
|
||||
start = data.index('[')
|
||||
end = data.rfind(']')+1
|
||||
data = json.decode(data[start:end])
|
||||
print data
|
||||
i = 0
|
||||
if len(data):
|
||||
cls.objects.delete()
|
||||
|
|
Loading…
Add table
Reference in a new issue