Skip to content

Commit f20ff17

Browse files
committed
Format and move FileDownloadsTable.tsx to files
1 parent 8ce55f2 commit f20ff17

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/api/files/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ def post(self, request, *args, **kwargs):
150150
file_type_description = (
151151
"JSON V1"
152152
if file_type == "application/json_v1"
153-
else "JSON V2" if file_type == "application/json_v2" else "CSV"
153+
else "JSON V2"
154+
if file_type == "application/json_v2"
155+
else "CSV"
154156
)
155157
Job.objects.create(
156158
scan_report=ScanReport.objects.get(id=scan_report_id),

app/next-client-app/app/(protected)/scanreports/[id]/downloads/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { list } from "@/api/files";
33
import { columns } from "./columns";
44
import { getJobs } from "@/api/scanreports";
55
import { DownloadStatus } from "./download-status";
6-
import { FileDownloadsTable } from "./FileDownloadsTable";
6+
import { FileDownloadsTable } from "@/components/files/FileDownloadsTable";
77

88
interface DownloadsProps {
99
params: Promise<{

app/next-client-app/app/(protected)/scanreports/[id]/downloads/FileDownloadsTable.tsx renamed to app/next-client-app/components/files/FileDownloadsTable.tsx

File renamed without changes.

0 commit comments

Comments
 (0)