From 59881a6414c217bcd0fd79732eb4d2fd2b4b9135 Mon Sep 17 00:00:00 2001
From: Krish M <krish94@uab.edu>
Date: Tue, 24 May 2022 16:03:46 -0500
Subject: [PATCH] added docstring

---
 tasks.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tasks.py b/tasks.py
index 1e40f6a..7098047 100644
--- a/tasks.py
+++ b/tasks.py
@@ -60,9 +60,9 @@ def send_msg(event, room):
     """
     This function is used to send messages via socketio
     Input:
-        string event, room: 
+        string event, room: event and room to use socketio emit message 
     Output:
-        string: emit event to room
+        string: socketio emit function to emit the event to the room
     """
     socketio.emit(event, room=room)
 
@@ -77,7 +77,7 @@ def celery_create_account(json, session):
     """
     This function is used to create account for new users 
     Input:
-        json: json object of all user attributes and session/room 
+        json, string: json object of all user attributes and session/room 
     Output:
         gen_f(room): callback to check for success or failure
     """
@@ -103,7 +103,7 @@ def celery_certify_account(json, session):
     """
     This function is used to certify account for existing users
     Input:
-        json: json object of all user attributes and session/room
+        json, string: json object of all user attributes and session/room
     Output:
         gen_f(room): callback to check for success or failure
     """
-- 
GitLab