src/quagen/migrator.py
def is_migrated():
    """
    If the database is running the latest migration

    Returns:
        (bool) True if up to date, false otherwise
    """
    migrated = True

    try:
        # @todo rseekely What we really want to do here is test the desired
        # version number against the version number currently in the db. But
        # that doesn't exist at the momment, so for now we'll just see if the
        # game table exists like above.
        db.query("SELECT game_id FROM game LIMIT 1")
    # pylint: disable=no-member
    except psycopg2.errors.UndefinedTable:
        migrated = False

    return migrated

    If the database is running the latest migration

    Returns:
        (bool) True if up to date, false otherwise
    
If the database is running the latest migration
If the database is running the latest migration
def is_migrated():
    migrated = True
    try:
        db.query("SELECT game_id FROM game LIMIT 1")
    except psycopg2.errors.UndefinedTable:
        migrated = False
    return migrated
def is_migrated ( ) : migrated = True try : db . query ( "SELECT game_id FROM game LIMIT 1" ) except psycopg2 . errors . UndefinedTable : migrated = False return migrated
If the database is running the latest migration
If the database is running the latest migration
"""
    If the database is running the latest migration

    Returns:
        (bool) True if up to date, false otherwise
    """ # @todo rseekely What we really want to do here is test the desired # version number against the version number currently in the db. But # that doesn't exist at the momment, so for now we'll just see if the # game table exists like above. # pylint: disable=no-member
(bool) True if up to date, false otherwise
( bool ) True if up to date false otherwise