Skip to content
Snippets Groups Projects
Commit 56fe3930 authored by Benjamin Ledel's avatar Benjamin Ledel
Browse files

Update file tasks.py

parent 2edee0d0
Branches
Tags
No related merge requests found
......@@ -42,9 +42,7 @@ class DataDisclosureProcessor:
Get all XAPI statements matching a user email address from database.
"""
collection = lrs_db["statements"]
""" query = { "$or" [ {"actor.account": f"name:{user_email}"}, { "actor.mbox": f"mailto:{user_email}" } ] }
"""
query = {"actor.account.name" : f"{user_email}"}
query = { "$or" [ {"actor.account.name": f"{user_email}"}, { "actor.mbox": f"mailto:{user_email}" } ] }
cursor = collection.find(query)
return [
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment