Posts by Sergio RBJ • 125 points
6 posts
- 
		2 votes2 answers138 viewsQ: Get object inside an array that has the lowest value in a specific Javascript keyI got the following array object: const cores = [ { cor: 'amarelo', peso: 2 }, { cor: 'amarelo', peso: 3 }, { cor: 'verde', peso: 7 } ]; My goal is first to filter it to return only the objects with… 
- 
		2 votes3 answers326 viewsQ: Convert date string without punctuation in Date Javascript formatI am wanting to format a date string without punctuation in a field with date format, for example: sdata = '201909091504' datacorreta = '2019-09-09 15:04' // resultado esperado I tried with the… 
- 
		0 votes1 answer180 viewsQ: Requests not being sent with payload in Python - MoodleGood afternoon, I’m having a problem that’s already giving me a headache. The blessed request payload is not being sent to the webservice, only the url. My code is like this: class Curso: '''Resgata… 
- 
		2 votes2 answers135 viewsA: Compare Python index independent listsTaking as a basis the thought of Alex, redo my code: listaNomes=[] for nome in dados2: listaNomes.append(nome['name']) for dadost1 in dados1: if dadost1['name'] not in listaNomes: print(dadost1)… 
- 
		0 votes2 answers135 viewsQ: Compare Python index independent listsGood afternoon, I need to compare 2 lists and when a certain value in the 'name' field of the list 1 does not exist in the 'name' field of the list 2 perform some function. The way I did is… 
- 
		5 votes3 answers482 viewsQ: Rescue only 10 first Python object recordsI am wrapped in a piece of code that I am doing. I need to rescue only the first 10 records of an object that I call into a for loop: listaTabela = [] for aluno in alunos: listaLinha = "" listaLinha…