In my Below code , Getting syntax error in line no : 2
I am using only one integer variable today
async def get_users(self):
today = 5
return self.col.find({'prexdate': {$gte: int(today)}}) #in this line getting a syntax error
In my Below code , Getting syntax error in line no : 2
I am using only one integer variable today
async def get_users(self):
today = 5
return self.col.find({'prexdate': {$gte: int(today)}}) #in this line getting a syntax error
your field is 'prexdate':
try this instead prexdate:
Here is also a link https://www.mongodb.com/docs/manual/reference/method/db.collection.find/