Junaidb commited on
Commit
7f399c9
·
verified ·
1 Parent(s): e0183e7

Update components/middleware.py

Browse files
Files changed (1) hide show
  1. components/middleware.py +16 -0
components/middleware.py CHANGED
@@ -25,6 +25,22 @@ import time
25
  #from geopy.exc import GeocoderServiceError
26
  #geolocator = Nominatim(user_agent="velocity")
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  '''
30
  def GEOCODER(coords):
 
25
  #from geopy.exc import GeocoderServiceError
26
  #geolocator = Nominatim(user_agent="velocity")
27
 
28
+ from privy import PrivyAPI
29
+
30
+ client = PrivyAPI(
31
+ app_id="cmihenof71gd2l40c4ieyu21h",
32
+ app_secret="4njjG89h1PztoHH98z9ghLaswTLmE7qb7RrEx2t9ZyvavtrYfYSsfc15cKjzEvkhE2iv6tGqmR1PA2WXT9ALHArV"
33
+ )
34
+
35
+
36
+ mongoclient=provideClient()
37
+ db=client["mcp_db"]
38
+ coll=db["mcp_col"]
39
+
40
+
41
+
42
+
43
+
44
 
45
  '''
46
  def GEOCODER(coords):