Skip to content
Browse files

Fixed Python MQ delete syntax. Fixes #275.

  • Loading branch information...
1 parent b45e979 commit a6ebc834bc4286552358f651a959902ac6900537 Paddy Foran committed Jan 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mq/index.html
View
4 mq/index.html
@@ -313,8 +313,8 @@ <h2 id="delete">4. Delete a Message from the Queue</h2>
{% highlight python %}
ironmq = IronMQ()
queue = ironmq.queue("test_queue")
-msg = queue.get()
-queue.delete(msg["ids"][0])
+response = queue.get()
+queue.delete(response["messages"][0]["id"])
{% endhighlight %}</div>
<div class="language go"><h3>Go Example</h3>

0 comments on commit a6ebc83

Please sign in to comment.
Something went wrong with that request. Please try again.