Exemple #1
0
def update(option: int) -> None:
    resp = 'Y'
    while resp.upper() == 'Y':
        regcard: Card = validcard(option)
        if int(regcard.codeCard) > 0:
            regcard.nameCard = inform_name('Card')
            Card.updatedb(regcard)

        resp = ' '
        while resp.upper() not in 'YN':
            resp = input('Do you want continue [Y/N}? ')
Exemple #2
0
def update(option: int, dfcard: DataFrame) -> None:
    resp = 'Y'
    while resp.upper() == 'Y':
        regcard: Card = validcard(option, dfcard)
        if int(regcard.codeCard) > 0:
            regcard.nameCard = inform_name('Card')

            nameAnt = dfcard.Name
            dfcard['Name'].replace(to_replace=[nameAnt],
                                   value=regcard.nameCard,
                                   inplace=True)

            Card.updatedb(regcard)

        resp = ' '
        while resp.upper() not in 'YN':
            resp = input('Do you want continue [Y/N}? ')