MVPilgrim commited on
Commit
268ee08
·
1 Parent(s): 522d392
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -274,9 +274,7 @@ try:
274
  logger.info("#### createChunksCollection() exited.")
275
  else:
276
  wpChunksCollection = client.collections.get("Chunks")
277
- st.session_state.wpChunksCollection = wpChunksCollection
278
-
279
-
280
 
281
 
282
  ###########################################################
@@ -290,13 +288,14 @@ try:
290
  # Create Webpage Object
291
  page_content = page_contentArray[i]
292
  # Insert the document.
293
- wpCollectionObj_uuid.append = wpCollection.data.insert(
294
  {
295
  "name": className,
296
  "title": title,
297
  "content": page_content
298
  }
299
  )
 
300
  st.session_state.wpCollectionLoaded = True
301
  logger.info("#### Create page/doc/db/objects exited.")
302
 
 
274
  logger.info("#### createChunksCollection() exited.")
275
  else:
276
  wpChunksCollection = client.collections.get("Chunks")
277
+ st.session_state.wpChunksCollection = wpChunksCollection
 
 
278
 
279
 
280
  ###########################################################
 
288
  # Create Webpage Object
289
  page_content = page_contentArray[i]
290
  # Insert the document.
291
+ wrkf = wpCollection.data.insert(
292
  {
293
  "name": className,
294
  "title": title,
295
  "content": page_content
296
  }
297
  )
298
+ wpCollectionObj_uuid.append(wrkf)
299
  st.session_state.wpCollectionLoaded = True
300
  logger.info("#### Create page/doc/db/objects exited.")
301