|
|
@@ -40,7 +40,7 @@ with open(os.path.join(local_path, "scripts/test/sa_user_purview.json") , 'r', e
|
|
|
with open(os.path.join(local_path, "scripts/test/sa_pest_bank.json") , 'r', encoding='utf-8') as f:
|
|
|
sa_pest_bank = json.load(f)
|
|
|
for row in sa_pest_bank.get("rows"):
|
|
|
- pest_bank, is_created = UserPurview.objects.get_or_create(
|
|
|
+ pest_bank, is_created = MongoPestBank.objects.get_or_create(
|
|
|
id=row.get("id"),
|
|
|
defaults=row
|
|
|
)
|