python - Altering data in GQL -


I need to change the values ​​for an entry, but the following code does not work.

  logList = db.GqlQuery ("Select the date range from the order of the order to the order limit 1") Log List [0] .content = "some text" db.pt (log list)  

When I run it the value of the newest element does not change. I checked the output with print, it gives the correct value (what the content field should be changed and the correct old value) and returns the following status code:

  Status: 302 Temporary Content moved as -Type: text / html; Charset = utf-8 cache-control: no-cache location: http: // localhost: 8080 / admin / editl expiration: Friday, 01 January 1990 00:00:00 GMT Content-Length: 0  

What's wrong with my code? Was mentioned in government documents.

"post-text" itemprop = "text">
  logList = db.gqlQuery ("Date Select Date From DESC LIMIT 1") results = logList.get () Result.content = "some text" result.put ()  

Try it, you are actually confusing the GqlQuery object for the results while raising the query.


Comments