Loading poolpay/card/__main__.py +4 −1 Original line number Diff line number Diff line import argparse import logging from poolpay.card.CardReader import CardReader from poolpay.card.Mfrc522CardReader import Mfrc522CardReader Loading Loading @@ -45,7 +46,9 @@ def parse_args() -> argparse.Namespace: args = parse_args() # Retrieve the requested reader class from the dictionary and create an instance reader = READERS[args.using]() ReaderClass = READERS[args.using] logging.info(f"Using reader '{args.using}' (class: '{ReaderClass.__name__}')") reader = ReaderClass() # Call the selected action ACTIONS[args.action](reader) Loading
poolpay/card/__main__.py +4 −1 Original line number Diff line number Diff line import argparse import logging from poolpay.card.CardReader import CardReader from poolpay.card.Mfrc522CardReader import Mfrc522CardReader Loading Loading @@ -45,7 +46,9 @@ def parse_args() -> argparse.Namespace: args = parse_args() # Retrieve the requested reader class from the dictionary and create an instance reader = READERS[args.using]() ReaderClass = READERS[args.using] logging.info(f"Using reader '{args.using}' (class: '{ReaderClass.__name__}')") reader = ReaderClass() # Call the selected action ACTIONS[args.action](reader)