@@ -348,6 +348,7 @@ class RTClient:
self.login_result = True
self.last_login = None
self.want_cfs = want_cfs
self.edits = {}
def login(self, login=None, password=None):
if login is None and password is None:
@@ -402,10 +403,15 @@ class RTClient:
],
}
if self.want_cfs:
retval['CF.{payment-method}'] = f'payment method {ticket_id_s}'
retval['CF.{payment-amount}'] = ''
retval['CF.{payment-method}'] = ''
retval['CF.{payment-to}'] = f'Hon. Mx. {ticket_id_s}'
return retval
def edit_ticket(self, ticket_id, **kwargs):
self.edits.setdefault(str(ticket_id), {}).update(kwargs)
return True
def get_user(self, user_id):
user_id_s = str(user_id)
match = re.search(r'(\d+)@', user_id_s)