Re: [Tutor] Only appending one object to list, when I am expecting more than 1

2019-02-27 Thread AdamC
obiah wrote: > > > On 2/26/19 6:39 AM, AdamC wrote: > > Sorry folks - my code didn't work due to my debug var count to ensure > that > > I was looping properly. > > > > It should be: > > As was pointed out, the problem is not in your code. It's in

Re: [Tutor] Only appending one object to list, when I am expecting more than 1

2019-02-26 Thread AdamC
t; Thank you for a well formed problem description. > > However, as Steven has remarked the code you've included doesn't run. > Can you follow up/reply with your actual working script, and also > include some of the output you get. > > That said, I've a few small rem

[Tutor] Only appending one object to list, when I am expecting more than 1

2019-02-26 Thread AdamC
I'm creating lots of objects from json in a file. Part of reading the json back means that it iterates over the file and loads a json object and then creates the object from the dictionary. This is my file: {"name": "Dwarf Fortress", "platform": "steam", "dateAdded": "2019:02:25:16:56:1551113768

[Tutor] Checking for string in a list strangeness

2009-04-06 Thread AdamC
I'm writing a small cgi application for children to use and I want to check that the name they enter isn't a swear word. I've populated a database with a swear word list and then check this list against the input, but it always shows up as not being a swear word. Can anyone see why this would alw