WDI-SEA / project-4-issues

Open an issue to receive help on project 4 issues
0 stars 0 forks source link

extracting values from a QueryDict and matching values to objects in an array #55

Open hectorzaragoza opened 2 years ago

hectorzaragoza commented 2 years ago

What stack are you using?

DR

What's the problem you're trying to solve?

I am trying to extract values from a QueryDict in python to push to an array that I can then use to filter out objects from another array based on matching elements from the first array and keys of the second one.

Post any code you think might be relevant (one fenced block per file)

image

What things have you already tried to solve the problem?

I have tried conventional methods to try and access the values from the query dict and a variety of methods on both QueryDict and regular dictionaries.

timmshinbone commented 2 years ago

Not sure I'm understanding what you're trying to accomplish, can you elaborate using language more related to functionality? then we can dive into coding terminology that will solve the problem

hectorzaragoza commented 2 years ago

Not sure I'm understanding what you're trying to accomplish, can you elaborate using language more related to functionality? then we can dive into coding terminology that will solve the problem

Sorry about that - I was a bit vague.

I have one array with strings and a second array of nested objects. I want to filter the second one to return the objects whose keys match the strings of the first array.

timmshinbone commented 2 years ago

ahh! does this have to happen on the back end or is it something you can process in the client then send to the server?

hectorzaragoza commented 2 years ago

The other Django team gave me that tip so I'm moving to the front end. :) I'm looking into the filter docs now...

hectorzaragoza commented 2 years ago

Can someone jump in to take a look at an issue?

TaylorDarneille commented 2 years ago

How's this going Hector?