|
@@ -10,6 +10,9 @@ from tabulate import tabulate
|
|
|
from util import debug
|
|
|
|
|
|
|
|
|
+exiting = False
|
|
|
+
|
|
|
+
|
|
|
def login(username=None, password=None):
|
|
|
if connection.session_id is not None:
|
|
|
fake_loading_bar('Signing out', duration=0.7)
|
|
@@ -273,3 +276,9 @@ def transactions(object_name=None):
|
|
|
print('Transactions access failed with message:', response['error_message'])
|
|
|
else:
|
|
|
print('Transactions access failed.')
|
|
|
+
|
|
|
+
|
|
|
+# noinspection PyShadowingBuiltins
|
|
|
+def exit():
|
|
|
+ global exiting
|
|
|
+ exiting = True
|