add prefix for messages
This commit is contained in:
@@ -8,6 +8,8 @@ from smartcard.util import toHexString
|
||||
|
||||
from card_reader import read_card
|
||||
|
||||
CLIPBOARD_MESSAGE_PREFIX = "ezgglan-clipboard-message:"
|
||||
|
||||
|
||||
class ClipboardReaderService:
|
||||
def __init__(self) -> None:
|
||||
@@ -44,9 +46,9 @@ class ClipboardReaderService:
|
||||
user_id = read_card(connection)
|
||||
|
||||
if user_id is not None:
|
||||
pyperclip.copy(str(user_id))
|
||||
pyperclip.copy(CLIPBOARD_MESSAGE_PREFIX + str(user_id))
|
||||
else:
|
||||
pyperclip.copy("Fehler: Erneut scannen")
|
||||
pyperclip.copy(CLIPBOARD_MESSAGE_PREFIX + "Fehler: Erneut scannen")
|
||||
|
||||
except CardConnectionException:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user