summaryrefslogtreecommitdiff
path: root/backend_api.py
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-02-17 07:21:45 +0400
committerAndrew <saintruler@gmail.com>2020-02-17 07:21:45 +0400
commit88113dc7d45dbdff76a8bb03b1d1cf0377949d4d (patch)
tree8fc596bf9c99c4ad5ef3ebeba3d31dd23ddbef7d /backend_api.py
parenta73cea507eee99a073843a800c42de18b5f8d349 (diff)
added something
Diffstat (limited to 'backend_api.py')
-rw-r--r--backend_api.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend_api.py b/backend_api.py
index 951c570..491560f 100644
--- a/backend_api.py
+++ b/backend_api.py
@@ -55,6 +55,11 @@ def register_user(tg_id: int, username: str, fullname: str) -> Tuple[int, Dict]:
})
+def get_profiles():
+ logger.debug(f"Trying to retrieve all profiles")
+ return get_request(f"{BACKEND_URL}/profiles/")
+
+
def get_tasks():
logger.debug(f"Trying to retrieve all tasks")
return get_request(f"{BACKEND_URL}/tasks/")