diff --git a/hawk_gui/management/commands/update_from_filesystem.py b/hawk_gui/management/commands/update_from_filesystem.py index 5011fa9..68ff1b4 100644 --- a/hawk_gui/management/commands/update_from_filesystem.py +++ b/hawk_gui/management/commands/update_from_filesystem.py @@ -15,7 +15,7 @@ class Command(BaseCommand): help = "Imports existing reports into the database, or updates them if they already exist." def handle(self, *args, **options): - for report_dir in glob(str(settings.MEDIA_ROOT) + "reports/**/*/"): + for report_dir in glob(str(settings.MEDIA_ROOT) + "/reports/**/*/"): report_dir = Path(report_dir) report_filename = report_dir / "report.json" report_slug = report_dir.name