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

Update file tasks.py

parent 4dbe883f
Branches
Tags
No related merge requests found
......@@ -42,7 +42,9 @@ class DataDisclosureProcessor:
Get all XAPI statements matching a user email address from database.
"""
collection = lrs_db["statements"]
query = {"actor.account": f"name:{user_email}"}
""" query = { "$or" [ {"actor.account": f"name:{user_email}"}, { "actor.mbox": f"mailto:{user_email}" } ] }
"""
query = {"actor.account.name" : f"{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