Fix contribution matching. Add deets to rfp detail admin.

This commit is contained in:
Will O'Beirne 2019-02-08 14:11:52 -05:00
parent 263764255b
commit 74fba18f99
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
2 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,9 @@ class RFPDetail extends React.Component<Props> {
{renderDeetItem('created', formatDateSeconds(rfp.dateCreated))}
{renderDeetItem('status', rfp.status)}
{renderDeetItem('category', rfp.category)}
{renderDeetItem('matching', String(rfp.matching))}
{renderDeetItem('bounty', `${rfp.bounty} ZEC`)}
{renderDeetItem('dateCloses', rfp.dateCloses && formatDateSeconds(rfp.dateCloses))}
</Card>
{/* PROPOSALS */}

View File

@ -163,7 +163,7 @@ def make_proposal_draft(rfp_id):
return {"message": "The request this proposal was made for doesnt exist"}, 400
proposal.category = rfp.category
if rfp.matching:
proposal.matching = 1.0
proposal.contribution_matching = 1.0
rfp.proposals.append(proposal)
db.session.add(rfp)