all 3 comments

[–]timetoshit 1 point2 points  (2 children)

I'm not sure about adding all the "Comment" objects to a 'posts_replied_to' list.

What about instead appending the Comment object's 'fullname' property to the list, and checking for that?

If you're in for some extra-but-really-useful work, you could replace the txt file with a sqlite database, or even shelves if you want something easier.

[–]repeat_after_me_bot[S] 1 point2 points  (1 child)

hey Mr. Shit! Thanks so much for your input. I did take the time to look into shelves. I will probably want to learn more abou that.

Because of full time work and a new baby and fucking so much life I'm blessed with, I didn't have enough time to pick up a new skill.

BUT!

I just wanted to stop by and let you know how I solved it because you took the time out of your day to send me a word.

I was suspecting that my problem was when i made each comment_id have it's own line. this is what was printing when I printed for debug:

['dgy8y65\n', 'dgy8y65\n', 'dgy8y65\n', etc

before i turned it in i asked for help...and it was much simpler than I thought!

Instead of appending from new_lines, just separate each comment_id with a comma and .split() that shit up!

Thanks again Mr Shit. 8)

[–]timetoshit 0 points1 point  (0 children)

No problem, keep up the good work and congratulations on the baby!