Browse Source

Fixed #5 - Wrong API-Doc for Api /buy/

master
Sebastian Lohff 11 years ago
parent
commit
b458cfaead
  1. 2
      k4ever/api2/handlers.py
  2. 2
      k4ever/docs/django/api.rst

2
k4ever/api2/handlers.py

@ -76,7 +76,7 @@ class BuyableItemHandler(BaseHandler): @@ -76,7 +76,7 @@ class BuyableItemHandler(BaseHandler):
def buyItem(self, request, itemId):
"""Buy a :class:`Buyable <buyable.models.Buyable>` item.
- deposit: Set to 0 for no deposit, 1 for item+deposit and 2 for deposit only (default 0)
- deposit: Set to 0 for no deposit, 1 for deposit and 2 for item+deposit (default 0)
- amount: amount of items to buy (default 1)
"""
if not itemId:

2
k4ever/docs/django/api.rst

@ -67,7 +67,7 @@ to the handler or the responsible method for more documentation or code. @@ -67,7 +67,7 @@ to the handler or the responsible method for more documentation or code.
========= =======================================================
Parameter Description
========= =======================================================
deposit Set to 0 for no deposit, 1 for item+deposit and 2 for deposit only (default 0)
deposit Set to 0 for no deposit, 1 for deposit and 2 for item+deposit (default 0)
amount amount of items to buy (default 1)
========= =======================================================

Loading…
Cancel
Save