Skip to content

Commit

Permalink
Fixed update from filesystem
Browse files Browse the repository at this point in the history
- Wrong glob path
  • Loading branch information
AmauryCarrade committed Apr 17, 2021
1 parent 4d9a7f9 commit c8867fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawk_gui/management/commands/update_from_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8867fe

Please sign in to comment.