Skip to content

Commit

Permalink
fix: network.dataset -> dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Aug 2, 2024
1 parent 3f18006 commit f859588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample_data/use_cases/new_york_energy/import_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def perform_import(dataset, **kwargs):
print('\tEstimated time: 90 minutes.')
start = datetime.now()
Network.objects.filter(dataset=dataset).delete()
VectorMapLayer.objects.filter(dataset=network.dataset).delete()
VectorMapLayer.objects.filter(dataset=dataset).delete()
for file_item in dataset.source_files.all():
with tempfile.TemporaryDirectory() as temp_dir:
archive_path = Path(temp_dir, 'archive.zip')
Expand Down

0 comments on commit f859588

Please sign in to comment.