mirror of
https://github.com/th30d4y/OpenLearnX.git
synced 2026-05-26 11:25:49 +00:00
5 lines
229 B
Python
5 lines
229 B
Python
from pymongo import MongoClient
|
|
db = MongoClient("mongodb://localhost:27017").openlearnx
|
|
exam = db.exams.find_one({"_id": ObjectId("6884f04c6ca73cc9032deaf9")})
|
|
print(exam["exam_code"]) # this is what participants must type
|