Cleans the database of the records which are not seen again on the basis of the _ref value.
(previous_records, collection)
| 96 | |
| 97 | @staticmethod |
| 98 | def clean_collection(previous_records, collection): |
| 99 | """ |
| 100 | Cleans the database of the records which are not seen again on the basis of the _ref value. |
| 101 | """ |
| 102 | for previous_record in previous_records: |
| 103 | collection.delete_one({"_ref": previous_record}) |
no outgoing calls
no test coverage detected