Answer the question
In order to leave comments, you need to log in
How to find lost records?
I have to match records by 2 characteristics. The first is the date of the event and the second is the start date. I take from the database like this
heh = list(db.events.aggregate(
[
{"$match": {"eventName" : "Purchase Hard"}},
{"$group": {"_id": "$uid", "dateofpay": {"$addToSet": "$updated_at"}}},
]))
lel = list(db.events.aggregate(
[
{"$match": {"eventName" : "Level 1"}},
{"$group": {"_id": "$uid", "dateofstart": {"$addToSet": "$updated_at"}}}
]))
dateoflvl1pay = list()
for players in lel:
kost = players["_id"]
if kost in x:
dateoflvl1pay.append(players)
= list(db.events.distinct("uid", {"eventName": "Level 1"}) and db.events.distinct("uid", {"eventName": "Purchase Hard"}))
please tell me how to solve this problem.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question