Set default taker and market sway when creating negotiation objects
This commit is contained in:
parent
e06538e09e
commit
e6c2e04e17
|
@ -69,7 +69,7 @@ def negotiation_create():
|
||||||
# @TODO Signal to the user that the negotiation already exists and they
|
# @TODO Signal to the user that the negotiation already exists and they
|
||||||
# are being sent to it instead.
|
# are being sent to it instead.
|
||||||
return flask.redirect('/negotiations/{}'.format(n))
|
return flask.redirect('/negotiations/{}'.format(n))
|
||||||
nego = Negotiation(name = n, owner = user.id)
|
nego = Negotiation(name = n, owner = user.id, taker_sway = 1, market_sway = 6)
|
||||||
pony.orm.commit()
|
pony.orm.commit()
|
||||||
return flask.redirect('/negotiations/{}'.format(n))
|
return flask.redirect('/negotiations/{}'.format(n))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue