Commit c6ffa703 authored by Jérome Perrin's avatar Jérome Perrin

fix python code example formating

parent 05b7fb21
......@@ -246,9 +246,15 @@ print "Alice's has {inventory} candies".format(
print "The history is:"
for brain in getMovementHistoryList(node_uid=alice.getUid(), resource_uid=candy.getUid()):
if brain.quantity > 0:
print "On {date}, she recieved {quantity} candies from {mirror_section_title}".format(date=brain.date, quantity=brain.quantity, mirror_section_title=brain.mirror_section_title)
print "On {date}, she recieved {quantity} candies from {mirror_section_title}".format(
date=brain.date,
quantity=brain.quantity,
mirror_section_title=brain.mirror_section_title)
else:
print "On {date}, she gave {quantity} candies to {mirror_section_title}".format(date=brain.date, quantity=brain.quantity, mirror_section_title=brain.mirror_section_title)
print "On {date}, she gave {quantity} candies to {mirror_section_title}".format(
date=brain.date,
quantity=brain.quantity,
mirror_section_title=brain.mirror_section_title)
```
## Complete List of supported parameters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment