Spaces:
Configuration error

yonkasoft commited on
Commit
cdcfcbe
1 Parent(s): 20947b2

Update database.py

Browse files
Files changed (1) hide show
  1. database.py +1 -1
database.py CHANGED
@@ -19,7 +19,7 @@ def get_reference_data():
19
  client = connect_to_mongodb()
20
  db = client[REFERENCE_DB]
21
  collection = db['test'] # Kendi koleksiyon isminizi buraya yazın
22
- data = collection.find()
23
  return list(data)
24
 
25
  def insert_data_into_input_db(data):
 
19
  client = connect_to_mongodb()
20
  db = client[REFERENCE_DB]
21
  collection = db['test'] # Kendi koleksiyon isminizi buraya yazın
22
+ data = collection.find({}, {"title": 1, "keywords": 1, "text": 1, "_id": 0})
23
  return list(data)
24
 
25
  def insert_data_into_input_db(data):