Categories
How to pull data from a cell?
I need to get the number of people in the queue. Here is my code and db
def get_count_people(self): return self.cursor.execute("SELECT COUNT (chat_id) FROM queue")
Answer the question
In order to leave comments, you need to log in
I think so:
def get_count_people(self): self.cursor.execute("SELECT COUNT (chat_id) FROM queue") result = self.cursor.fetchall() return result
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question