Fix contribution matching. Add deets to rfp detail admin.
This commit is contained in:
parent
263764255b
commit
74fba18f99
|
@ -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 */}
|
||||
|
|
|
@ -163,7 +163,7 @@ def make_proposal_draft(rfp_id):
|
|||
return {"message": "The request this proposal was made for doesn’t 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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue