Open msen7437 opened 3 years ago
Basically done
Now fully done, but i want to display the number of comments under each post or comment: Scratch code
def get_number_of_comments(post_id): sql=f"SELECT COUNT(some_id) WHERE post_id = {post_id}" comm_num = cur.execute(sql) return comm_num
Volleicht in einer loop durchlaufen lassen, oder ganze liste mit zahlen zurückgeben.
I want to comment posts and comments under posts. Database must might refactored