# 83 Publication rework EcoAccount Compensation
* adds implementation for is_ready_for_publish() on compensation (uses intervention's implementation) and EcoAccount
This commit is contained in:
@@ -193,6 +193,16 @@ class EcoAccount(AbstractCompensation, ShareableObjectMixin, RecordableObjectMix
|
||||
)
|
||||
return deduction
|
||||
|
||||
def is_ready_for_publish(self) -> bool:
|
||||
""" Checks whether the data passes all constraints for being publishable
|
||||
|
||||
Returns:
|
||||
is_ready (bool) : True|False
|
||||
"""
|
||||
is_recorded = self.recorded is not None
|
||||
is_ready = is_recorded
|
||||
return is_ready
|
||||
|
||||
|
||||
class EcoAccountDocument(AbstractDocument):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user