2e268c86eee6a1753d16afe23388c9f26dd0f7ca,modules/templates/default/monitor.py,S3Monitor,email_round_trip,#Any#Any#,94

Before Change


        // Read the Task Options
        otable = current.s3db.setup_monitor_task_option
        query = (otable.task_id == task_id) & \
                (otable.deleted == False)
        rows = current.db(query).select(otable.tag,
                                        otable.value,
                                        )
        options = dict((row.tag, row.value) for row in rows)

        to = options.get("to", None)
        if not to:

After Change



        // Read the Task Options
        ttable = current.s3db.setup_monitor_task
        task = current.db(ttable.task_id == task_id).select(ttable.options,
                                                            limitby = (0, 1)
                                                            ).first()
        options = json.loads(task.options)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: sahana/eden
Commit Name: 2e268c86eee6a1753d16afe23388c9f26dd0f7ca
Time: 2020-01-27
Author: fran@aidiq.com
File Name: modules/templates/default/monitor.py
Class Name: S3Monitor
Method Name: email_round_trip


Project Name: sahana/eden
Commit Name: 86b0720a78db81ce102f0ada03327757a294a8f8
Time: 2019-09-02
Author: fran@aidiq.com
File Name: modules/s3db/dc.py
Class Name: DataCollectionTemplateModel
Method Name: dc_question_onaccept


Project Name: sahana/eden
Commit Name: 2e268c86eee6a1753d16afe23388c9f26dd0f7ca
Time: 2020-01-27
Author: fran@aidiq.com
File Name: modules/s3db/setup.py
Class Name: S3SetupMonitorModel
Method Name: setup_monitor_task_onaccept