Everything uses data.getdata()

data.getdata() excepts two parameters, if desired, the second will be the index, however if you don't specify anything, the whole array will be returned
Also, comments now have a composite key of postID-commentID, with each post's comments having their own set starting at 0, this makes it easier to index and find a specific comment, and making the getcomment() function unessesary
This commit is contained in:
max
2025-09-24 17:06:13 +01:00
parent 93c5f13750
commit e6476dcd4e
6 changed files with 47 additions and 43 deletions

View File

@@ -1 +1 @@
{"hitcount":8,"comment_counter":0}
{"hitcount":16,"comment_counter":1}