Question: PYTHON MONGODB ---- PLEASE HELP!!!! PYTHON MONGODB ---- PLEASE HELP!!!! I need help writing a function. The function/arguments it should have are listed below, and
PYTHON MONGODB ---- PLEASE HELP!!!!
PYTHON MONGODB ---- PLEASE HELP!!!!
I need help writing a function. The function/arguments it should have are listed below, and it should return a list from the Message_statuses collection.
Function: getList_fromRange (user_name, eventDate, days_prior_to_event, days_after_event):
STRING user_name: is user's ID
STRING eventDate: is the date I am interested in (format is like this 2020-07-16)
INT days_prior_to_event: the number of days before eventDate
INT days_after_event: the number of days after eventDate
(So for example if I am interested in the date 2020-08-24 and I want to see the messages 10 days before and 12 days after 2020-08-24, I want to get returned a printed list of the messages from Message_statuses that are all between that range of (2020-08-14 and 2020-09-05)) !!!!
RETURN: a list from Message_statuses collection from the range (of days before and days after the eventDate)!!!
PLEASE HELP THANK YOU!!!!!!!!!!!!
PYTHON MONGODB ---- PLEASE HELP!!!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
