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

Update file tasks.py

parent 0095f087
No related branches found
No related tags found
No related merge requests found
Pipeline #1032737 failed
......@@ -42,8 +42,8 @@ class DataDisclosureProcessor:
Get all XAPI statements matching a user email address from database.
"""
collection = lrs_db["statements"]
""" query = { "$or" [ {"actor.account.name": f"{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}" } ] }
""" 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