Set default taker and market sway when creating negotiation objects

This commit is contained in:
Kienan Stewart 2020-04-20 01:51:51 -04:00
parent e06538e09e
commit e6c2e04e17
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def negotiation_create():
# @TODO Signal to the user that the negotiation already exists and they
# are being sent to it instead.
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()
return flask.redirect('/negotiations/{}'.format(n))