Update well_status_utils.py
Browse files- well_status_utils.py +6 -6
well_status_utils.py
CHANGED
|
@@ -5,13 +5,13 @@ import pandas as pd
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
MONGODB_PASSWORD = os.getenv("MONGODB_PASSWORD")
|
| 8 |
-
print(MONGODB_PASSWORD)
|
| 9 |
blinded_connection_string = os.getenv("blinded_connection_string")
|
| 10 |
-
print(blinded_connection_string)
|
| 11 |
connection_string = blinded_connection_string.replace("<db_password>", MONGODB_PASSWORD)
|
| 12 |
-
print(connection_string)
|
|
|
|
| 13 |
|
| 14 |
-
@task
|
| 15 |
def generate_empty_well():
|
| 16 |
dbclient = MongoClient(connection_string)
|
| 17 |
db = dbclient["LCM-OT-2-SLD"]
|
|
@@ -35,7 +35,7 @@ def generate_empty_well():
|
|
| 35 |
# close connection
|
| 36 |
dbclient.close()
|
| 37 |
|
| 38 |
-
|
| 39 |
def update_used_wells(used_wells):
|
| 40 |
dbclient = MongoClient(connection_string)
|
| 41 |
db = dbclient["LCM-OT-2-SLD"]
|
|
@@ -55,7 +55,7 @@ def update_used_wells(used_wells):
|
|
| 55 |
# close connection
|
| 56 |
dbclient.close()
|
| 57 |
|
| 58 |
-
|
| 59 |
def find_unused_wells():
|
| 60 |
dbclient = MongoClient(connection_string)
|
| 61 |
db = dbclient["LCM-OT-2-SLD"]
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
MONGODB_PASSWORD = os.getenv("MONGODB_PASSWORD")
|
| 8 |
+
print(f"MONGODB_PASSWORD: {MONGODB_PASSWORD}")
|
| 9 |
blinded_connection_string = os.getenv("blinded_connection_string")
|
| 10 |
+
print(f"blinded_connection_string: {blinded_connection_string}")
|
| 11 |
connection_string = blinded_connection_string.replace("<db_password>", MONGODB_PASSWORD)
|
| 12 |
+
print(f"Connection String: {connection_string}")
|
| 13 |
+
|
| 14 |
|
|
|
|
| 15 |
def generate_empty_well():
|
| 16 |
dbclient = MongoClient(connection_string)
|
| 17 |
db = dbclient["LCM-OT-2-SLD"]
|
|
|
|
| 35 |
# close connection
|
| 36 |
dbclient.close()
|
| 37 |
|
| 38 |
+
|
| 39 |
def update_used_wells(used_wells):
|
| 40 |
dbclient = MongoClient(connection_string)
|
| 41 |
db = dbclient["LCM-OT-2-SLD"]
|
|
|
|
| 55 |
# close connection
|
| 56 |
dbclient.close()
|
| 57 |
|
| 58 |
+
|
| 59 |
def find_unused_wells():
|
| 60 |
dbclient = MongoClient(connection_string)
|
| 61 |
db = dbclient["LCM-OT-2-SLD"]
|