Spaces:
Sleeping
Sleeping
sampathlonka
commited on
Commit
•
f4bab94
1
Parent(s):
5f7376d
updated self
Browse files- database.py +1 -2
database.py
CHANGED
@@ -34,7 +34,7 @@ def execute_query(query):
|
|
34 |
db.close()
|
35 |
|
36 |
|
37 |
-
def _get_details_mantra_json(
|
38 |
description, data = execute_query(query)
|
39 |
df = pd.DataFrame(data)
|
40 |
df.columns = [x[0] for x in description]
|
@@ -42,4 +42,3 @@ def _get_details_mantra_json(self, query):
|
|
42 |
cleaned_data = re.sub('<[^<]+?>', '', mantra_json)
|
43 |
return json.loads(cleaned_data)
|
44 |
|
45 |
-
|
|
|
34 |
db.close()
|
35 |
|
36 |
|
37 |
+
def _get_details_mantra_json(query):
|
38 |
description, data = execute_query(query)
|
39 |
df = pd.DataFrame(data)
|
40 |
df.columns = [x[0] for x in description]
|
|
|
42 |
cleaned_data = re.sub('<[^<]+?>', '', mantra_json)
|
43 |
return json.loads(cleaned_data)
|
44 |
|
|