Source code for spotted.data.post_data

"""Data management for the bot"""

from .db_manager import DbManager


[docs] class PostData: """Class that handles the management of persistent data fetch or manipulation in the post bot"""
[docs] @staticmethod def get_n_posts() -> int: """Gets the total number of posts Returns: total number of posts """ return DbManager.count_from(table_name="published_post")