Add ProofFunction view except author field
This commit is contained in:
parent
3ce32f2dd4
commit
e3f960aa8b
|
@ -112,7 +112,7 @@ class ProofDataWipe(JoinedTableMixin, Proof):
|
||||||
|
|
||||||
class ProofFunction(JoinedTableMixin, Proof):
|
class ProofFunction(JoinedTableMixin, Proof):
|
||||||
disk_usage = Column(db.Integer, default=0)
|
disk_usage = Column(db.Integer, default=0)
|
||||||
rate_id = Column(UUID, ForeignKey(Rate.id), nullable=False)
|
rate_id = Column(UUID(as_uuid=True), ForeignKey(Rate.id), nullable=False)
|
||||||
rate = relationship(Rate,
|
rate = relationship(Rate,
|
||||||
backref=backref('proof_function',
|
backref=backref('proof_function',
|
||||||
lazy=True,
|
lazy=True,
|
||||||
|
|
|
@ -45,8 +45,9 @@ class ProofDataWipe(Proof):
|
||||||
|
|
||||||
class ProofFunction(Proof):
|
class ProofFunction(Proof):
|
||||||
__doc__ = m.ProofFunction.__doc__
|
__doc__ = m.ProofFunction.__doc__
|
||||||
disk_usage = Integer()
|
disk_usage = Integer(data_key='diskUsage')
|
||||||
rate = NestedOn(s_action.Rate, required=True, only_query='id')
|
rate = NestedOn(s_action.Rate, required=True,
|
||||||
|
only_query='id', data_key='rateID')
|
||||||
|
|
||||||
|
|
||||||
class ProofReuse(Proof):
|
class ProofReuse(Proof):
|
||||||
|
|
Reference in New Issue