Update remainder.py

#5
by CosmoAI - opened
Files changed (1) hide show
  1. remainder.py +4 -1
remainder.py CHANGED
@@ -2,10 +2,13 @@ import streamlit as st
2
  import json
3
  import uuid
4
  import os
 
5
 
6
  uri = os.environ["MONGO_CONNECTION_STRING"]
7
- client = MongoClient(uri,tlsCertificateKeyFile)= "cert.pem"
8
 
 
 
9
 
10
  def rem():
11
  st.title("Reminders")
 
2
  import json
3
  import uuid
4
  import os
5
+ from pymongo import MongoClient
6
 
7
  uri = os.environ["MONGO_CONNECTION_STRING"]
8
+ client = MongoClient(uri,tlsCertificateKeyFile= "cert.pem")
9
 
10
+ db = client["mydata"]
11
+ col = db["Reminders"]
12
 
13
  def rem():
14
  st.title("Reminders")