def po_due_followups():
 query = ((FS('followup_date') <= datetime.datetime.utcnow().date()) & (FS('completed') != True))
 resource = current.s3db.resource('po_household_followup', filter=query)
 return resource.count()

def po_due_followups ( ) : query = ( ( FS ( 'followup_date' ) <= datetime . datetime . utcnow ( ) . date ( ) ) & ( FS ( 'completed' ) != True ) ) resource = current . s3db . resource ( 'po_household_followup' , filter = query ) return resource . count ( )
number of due follow-ups .