Skip to content

feat: add type hints and utility functions to db_manager.py#1644

Open
ashrion wants to merge 1 commit into
steam-bell-92:mainfrom
ashrion:feat/db-manager-type-hints
Open

feat: add type hints and utility functions to db_manager.py#1644
ashrion wants to merge 1 commit into
steam-bell-92:mainfrom
ashrion:feat/db-manager-type-hints

Conversation

@ashrion

@ashrion ashrion commented Jul 11, 2026

Copy link
Copy Markdown

Summary

Added type hints and utility functions to db_manager.py for better code quality and maintainability.

Changes

  • Added type annotations to all functions
  • Added get_all_scores() - retrieves all scores with optional limit
  • Added get_recent_scores() - retrieves recent scores for a game
  • Added clear_all_scores() - clears all scores (with confirmation)
  • Improved docstrings

How to Test

  1. Import the module: from utils.db_manager import get_all_scores, get_recent_scores, clear_all_scores
  2. Test each function with existing database

Related Issues

Fixes #1642

GSSoC 2026

Added type annotations, get_all_scores(), get_recent_scores(), and
clear_all_scores() functions for better database management.

Fixes steam-bell-92#1642
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

@ashrion is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add type hints and utility functions to db_manager.py

1 participant