Skip to content

get_all_topics function #7

Description

@MagnusLii

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

  • None

Returns

  • JSON formatted data: Contains votes, where each vote includes an ID and the corresponding vote name/topic.

Function Name: get_all_topics

Metadata

Metadata

Assignees

Labels

DBAnything related to the DBWebsiteAnything related to the website

Projects

Status
👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions