From ca1910df1ad4d45c9927bb98b1af423f225dec96 Mon Sep 17 00:00:00 2001 From: jackeilles Date: Mon, 26 Feb 2024 20:29:07 +0000 Subject: [PATCH] I think this is supposed to work?? --- app/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/worker.py b/app/worker.py index adaa3ab..5d4b5c3 100644 --- a/app/worker.py +++ b/app/worker.py @@ -128,7 +128,7 @@ def userInfo(id): userid = id # Search for all files from that userID - files = Config.files.find({"userid": userid}, {"_id": False, "ip": False}) + files = Config.files.find_many({"userid": userid}, {"_id": False, "ip": False}) list = {} # Create file listing @@ -145,7 +145,7 @@ def userInfo(id): }) # Search for all URL's from that userID - url = Config.url.find({"userid": userid}) + url = Config.url.find_many({"userid": userid}) # Format all into one JSON return {