Skip to content

Commit 9253e46

Browse files
fixes
1 parent 4bef8bb commit 9253e46

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

backend-app/archive/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
DO_NOTHING,
77
DateTimeField,
88
IntegerField,
9+
BigIntegerField,
910
JSONField,
1011
TextField
1112
)
@@ -16,7 +17,7 @@ class Archive(Model):
1617

1718
id = CharField(max_length=36, primary_key=True)
1819
result_id = CharField(max_length=24, null=True)
19-
result_size = IntegerField(null=True)
20+
result_size = BigIntegerField(null=True)
2021
result_message = TextField(null=True)
2122
status = CharField(max_length=1, choices=STATUSES, default="p")
2223
filters = JSONField()

backend-app/archive/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def _make_archive(project: Project, request: Request) -> tuple[dict[str, Any], i
4747
only_annotation = request_query.get("only_annotation", False) is True
4848

4949
filter_data = {
50-
"status": request_query.get("card", []),
50+
"status": request_query.get("card[]", []),
5151
"only_new": only_new,
52-
"type": request_query.get("type", []),
52+
"type": request_query.get("type[]", []),
5353
"attributes": list(attributes)
5454
}
5555

frontend-app/src/components/FilesDownload/index.jsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ export default function FilesDownload({ pathID, attributes }) {
3535
const navigate = useNavigate();
3636
const filterFields = useMemo(() => [
3737
{
38-
prettyName: 'Card Filter:',
39-
name: 'card',
38+
prettyName: "Card Filter:",
39+
name: "card[]",
4040
data: CARD_FILTERS,
4141
},
4242
{
43-
prettyName: 'Attribute Filter:',
44-
name: 'attr',
43+
prettyName: "Attribute Filter:",
44+
name: "attr[]",
4545
data: attributes,
4646
type: "attr"
4747
},
4848
{
49-
prettyName: 'Filetype Filter:',
50-
name: 'type',
49+
prettyName: "Filetype Filter:",
50+
name: "type[]",
5151
data: TYPE_FILTER,
5252
},
5353
{
@@ -120,9 +120,7 @@ export default function FilesDownload({ pathID, attributes }) {
120120
setDownloads(data);
121121
}
122122
catch ({ message, response }) {
123-
var authFailed = response && (
124-
response.status === 401 || response.status === 403
125-
);
123+
var authFailed = response && (response.status === 401 || response.status === 403);
126124

127125
dispatch(addAlert({
128126
message: "Getting files data error:" + message,
@@ -167,9 +165,7 @@ export default function FilesDownload({ pathID, attributes }) {
167165
}
168166
};
169167

170-
useEffect(() => {
171-
getDownloads();
172-
}, []);
168+
useEffect(() => { getDownloads(); }, []);
173169

174170
return <>
175171
{/* todo: supposed to be a form element but val filter group has it inside */}

0 commit comments

Comments
 (0)