International Sensor Development Project: This project is a voting system that uses a raspberry pi server and multiple voting devices. The system is easy, secure, scalable, and supports anonymous and registered voting. This repository focuses on the Raspberry Pi server.
This function should contain a pre-defined SQL query to retrieve the entire vote history from the database. After obtaining this information, the function transforms it into JSON string format.
Arguments
None
Returns
JSON formatted data: Contains votes, where each vote includes an ID and the corresponding vote name/topic.
Vote History Data Retrieval Function from DB
Goal
This function should contain a pre-defined SQL query to retrieve the entire vote history from the database. After obtaining this information, the function transforms it into JSON string format.
Arguments
Returns
Function Name:
get_all_topics