deepsync commited on
Commit
1659d1b
·
1 Parent(s): c39c74a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -93,7 +93,7 @@ def get_translators(platform):
93
  if platform == "dev":
94
  api_url = "https://api.dev-env.deepsync.co/api/v1"
95
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
96
- source_db = client.deepsync_staging
97
  else:
98
  api_url = "https://api.deepsync.co/api/v1"
99
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
@@ -128,7 +128,7 @@ def add_translator(platform, email_id, source_langs, target_langs, contact_num,
128
  if platform == "dev":
129
  api_url = "https://api.dev-env.deepsync.co/api/v1"
130
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
131
- source_db = client.deepsync_staging
132
  else:
133
  api_url = "https://api.deepsync.co/api/v1"
134
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
@@ -178,7 +178,7 @@ def get_translator_names(platform):
178
  if platform == "dev":
179
  api_url = "https://api.dev-env.deepsync.co/api/v1"
180
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
181
- source_db = client.deepsync_staging
182
  else:
183
  api_url = "https://api.deepsync.co/api/v1"
184
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
@@ -317,7 +317,7 @@ def get_traslators_assign(platform, video):
317
  if platform == "dev":
318
  api_url = "https://api.dev-env.deepsync.co/api/v1"
319
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
320
- source_db = client.deepsync_staging
321
  else:
322
  api_url = "https://api.deepsync.co/api/v1"
323
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
 
93
  if platform == "dev":
94
  api_url = "https://api.dev-env.deepsync.co/api/v1"
95
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
96
+ source_db = client.deepsync_stage
97
  else:
98
  api_url = "https://api.deepsync.co/api/v1"
99
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
 
128
  if platform == "dev":
129
  api_url = "https://api.dev-env.deepsync.co/api/v1"
130
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
131
+ source_db = client.deepsync_stage
132
  else:
133
  api_url = "https://api.deepsync.co/api/v1"
134
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
 
178
  if platform == "dev":
179
  api_url = "https://api.dev-env.deepsync.co/api/v1"
180
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
181
+ source_db = client.deepsync_stage
182
  else:
183
  api_url = "https://api.deepsync.co/api/v1"
184
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))
 
317
  if platform == "dev":
318
  api_url = "https://api.dev-env.deepsync.co/api/v1"
319
  client = pymongo.MongoClient(os.environ.get("MONGO_DEV_URI"))
320
+ source_db = client.deepsync_stage
321
  else:
322
  api_url = "https://api.deepsync.co/api/v1"
323
  client = pymongo.MongoClient(os.environ.get("MONGO_URI"))