Skip to content

Potential Issues with viewProducts.py #34

@theLiamDel

Description

@theLiamDel

There are some potential issues with how these functions currently work, which could come to light if the database columns ever change in the future.

Context

Currently, these functions select everything from the tables, and accesses the correct column by index. But if these columns change order in the future for some reason, this will break all these functions

Expected result if columns change

Functions work as normal

Current result

Incorrect information will get displayed

Possible Fix

Instead of selecting everything in the row, select specific columns from the table, This will mean index is consistent with select statement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions