734af1c431c93768638e306e9b08f5ef30c1c2f7,modules/s3db/asset.py,S3AssetModel,asset_log_onaccept,#Any#,707

Before Change


                // Set Base Location
                site_id = form_vars.get("site_id", None)
                stable = db.org_site
                location_id = db(stable.site_id == site_id).select(stable.location_id,
                                                                   limitby=(0, 1)
                                                                   ).first().location_id
                asset_tracker.set_base_location(location_id)
                // Also do component items
                db(aitable.asset_id == asset_id).update(location_id = location_id)

After Change


                // Set Base Location
                site_id = form_vars.get("site_id")
                stable = db.org_site
                site = db(stable.site_id == site_id).select(stable.location_id,
                                                            limitby = (0, 1)
                                                            ).first()
                location_id = site.location_id
                asset_tracker.set_base_location(location_id)
                // Also do component items
                db(aitable.asset_id == asset_id).update(location_id = location_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: sahana/eden
Commit Name: 734af1c431c93768638e306e9b08f5ef30c1c2f7
Time: 2020-03-05
Author: fran@aidiq.com
File Name: modules/s3db/asset.py
Class Name: S3AssetModel
Method Name: asset_log_onaccept


Project Name: sahana/eden
Commit Name: d3b4dc792c2f91bc973a52415f7fa246d98f913e
Time: 2018-03-09
Author: dominic@nursix.org
File Name: modules/s3db/inv.py
Class Name: S3InventoryTrackingModel
Method Name: inv_track_item_total_volume


Project Name: sahana/eden
Commit Name: d3b4dc792c2f91bc973a52415f7fa246d98f913e
Time: 2018-03-09
Author: dominic@nursix.org
File Name: modules/s3db/inv.py
Class Name: S3InventoryTrackingModel
Method Name: inv_track_item_total_weight


Project Name: sahana/eden
Commit Name: 734af1c431c93768638e306e9b08f5ef30c1c2f7
Time: 2020-03-05
Author: fran@aidiq.com
File Name: modules/s3db/asset.py
Class Name: S3AssetModel
Method Name: asset_onaccept


Project Name: OpenMined/Grid
Commit Name: 7d7287ef5a3b2f265bea9727ae6f0b3ba0d70a81
Time: 2021-03-10
Author: dayvson.nascimento@ccc.ufcg.edu.br
File Name: apps/domain/src/main/core/services/request_service.py
Class Name:
Method Name: create_request_msg