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( ...@@ -246,9 +246,15 @@ print "Alice's has {inventory} candies".format(
print "The history is:" print "The history is:"
for brain in getMovementHistoryList(node_uid=alice.getUid(), resource_uid=candy.getUid()): for brain in getMovementHistoryList(node_uid=alice.getUid(), resource_uid=candy.getUid()):
if brain.quantity > 0: 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: 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 ## 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