79109419

Date: 2024-10-21 09:32:49
Score: 0.5
Natty:
Report link

You can combine the conditions using &:

from mongoengine import Q

dt_str = "2024-01-03 4:00:00"
contains_word = "your_specific_word"

query = Q(**{f'playtime__{dt_str}__exists': True}) & Q(**{f'playtime__{dt_str}__contains': contains_word})
entries = GameDoc.objects(query)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nova