diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index 5f05ea65..76930cf5 100644 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -166,11 +166,23 @@ def csv_parse(a): fullitem["index"] = cnt fullitem["parsed"] = {} if len(columns) != len(commasplit): - allitems.append(fullitem) - continue + + if len(commasplit) > len(columns): + diff = len(commasplit)-len(columns) + + try: + commasplit = commasplit[0:len(commasplit)-diff] + except: + pass + else: + for item in range(0, len(columns)-len(commasplit)): + commasplit.append("") for key in range(len(columns)): - fullitem["parsed"][columns[key]] = commasplit[key] + try: + fullitem["parsed"][columns[key]] = commasplit[key] + except: + continue allitems.append(fullitem) diff --git a/frontend/src/components/CreatorGrid.jsx b/frontend/src/components/CreatorGrid.jsx index 00e4144e..ec1b7ba9 100644 --- a/frontend/src/components/CreatorGrid.jsx +++ b/frontend/src/components/CreatorGrid.jsx @@ -35,6 +35,7 @@ import { SkipNext as SkipNextIcon, SkipPrevious as SkipPreviousIcon, PlayArrow as PlayArrowIcon, + VerifiedUser as VerifiedUserIcon, } from "@material-ui/icons"; @@ -162,21 +163,30 @@ const CreatorGrid = props => { return ( - - - + + +
{"Creator @{data.username} + + {data.verified === true ? + + + + : + null + } +
- {data.apps} apps {data.workflows} workflows + {data.apps === undefined || data.apps === null ? 0 : data.apps} apps {data.workflows === null || data.workflows === undefined ? 0 : data.workflows} workflows {data.specialized_apps !== undefined && data.specialized_apps !== null && data.specialized_apps.length > 0 ? - + {data.specialized_apps.map((app, index) => { // Putting all this in secondary of ListItemText looked weird. return (