src/canvas-extractor/edfi_canvas_extractor/api/submissions.py
def submissions_synced_as_df(
    submissions: List[Submission],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    """
    Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    submissions: List[Submission]
        a list of Canvas Submissions objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Submissions API DataFrame with the current and previously fetched data
    """
    submissions_df: DataFrame = _sync_without_cleanup(to_df(submissions), sync_db)
    cleanup_after_sync(SUBMISSIONS_RESOURCE_NAME, sync_db)

    return submissions_df

    Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    submissions: List[Submission]
        a list of Canvas Submissions objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Submissions API DataFrame with the current and previously fetched data
    
Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame
with current and previously fetched data

Parameters

List[Submission]
a list of Canvas Submissions objects
sync_db: sqlalchemy.engine.base.Engine
an Engine instance for creating database connections

Returns

DataFrame
a Submissions API DataFrame with the current and previously fetched data
Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame with current and previously fetched data Parameters List [ Submission ] a list of Canvas Submissions objects sync_db : sqlalchemy . engine . base . Engine an Engine instance for creating database connections Returns DataFrame a Submissions API DataFrame with the current and previously fetched data
def submissions_synced_as_df(
    submissions: List[Submission],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    submissions_df: DataFrame = _sync_without_cleanup(to_df(submissions), sync_db)
    cleanup_after_sync(SUBMISSIONS_RESOURCE_NAME, sync_db)
    return submissions_df
def submissions_synced_as_df ( submissions : List [ Submission ] , sync_db : sqlalchemy . engine . base . Engine , ) -> DataFrame : submissions_df : DataFrame = _sync_without_cleanup ( to_df ( submissions ) , sync_db ) cleanup_after_sync ( SUBMISSIONS_RESOURCE_NAME , sync_db ) return submissions_df
Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame
with current and previously fetched data
Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame with current and previously fetched data
"""
    Fetch Submissions API data for a range of assignments and return a Submissions API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    submissions: List[Submission]
        a list of Canvas Submissions objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Submissions API DataFrame with the current and previously fetched data
    """
submissions
List[Submission]
sync_db
sqlalchemy.engine.base.Engine