Skip to main content
11 events
when toggle format what by license comment
Jul 24, 2022 at 13:19 history edited Reinderien CC BY-SA 4.0
added 4396 characters in body
Jul 24, 2022 at 13:13 history edited Reinderien CC BY-SA 4.0
added 4396 characters in body
Jul 24, 2022 at 12:50 history edited Reinderien CC BY-SA 4.0
Nonrecursive find instead of select
Jul 24, 2022 at 12:45 history edited Reinderien CC BY-SA 4.0
Reduce necessary query keys
Jul 24, 2022 at 3:42 comment added Omar Morales Rivera BTW you caught a bug since it was supposed to be if len(diff)>0 not if len(diff)<0 which as you said makes no sense. That block should remove the last len(diff) elements to keep the length of the final list equal to 64. The conditional was only to catch errors in case all the favourites already appeared (because you can't loop 0 times and I think that'd crash the program if left unchecked). Thanks!
Jul 23, 2022 at 18:44 comment added Reinderien For the walk-through, chat.stackexchange.com/rooms/137992/…
Jul 23, 2022 at 18:41 history edited Reinderien CC BY-SA 4.0
deleted 4 characters in body
Jul 23, 2022 at 16:47 vote accept Omar Morales Rivera
Jul 23, 2022 at 16:42 comment added Omar Morales Rivera I'm intrigued about the second and third layer. Honestly I haven't used APIs yet and I should definitely read about it, although I'd like it if you could walk me through that implementation. My script is already running and should take about 20 hours to finish so even with the time limits this is a massive improvement. The avoid_riots is supposed to add the favourite trees if they are not among the 64 most popular and it's named like that because people in the group have very strong opinions about those plants.
Jul 23, 2022 at 15:51 history edited Reinderien CC BY-SA 4.0
added 3985 characters in body
Jul 23, 2022 at 14:58 history answered Reinderien CC BY-SA 4.0