randydev commited on
Commit
f593d1d
1 Parent(s): 3d10576

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -202,7 +202,7 @@ def get_profile_clone(user_id):
202
  bio = user.get("bio_2")
203
  return first_name, last_name, profile_id, bio
204
  else:
205
- return None, None, None, None
206
 
207
  @app.post("/ryuzaki/profile-clone")
208
  def profile_clone(
@@ -254,7 +254,7 @@ def get_profile_(
254
  bio_str = ""
255
  else:
256
  bio_str = bio
257
- if first_name and last_name_str and profile_id and bio_str:
258
  return {
259
  "status": "true",
260
  "randydev": {
 
202
  bio = user.get("bio_2")
203
  return first_name, last_name, profile_id, bio
204
  else:
205
+ return None
206
 
207
  @app.post("/ryuzaki/profile-clone")
208
  def profile_clone(
 
254
  bio_str = ""
255
  else:
256
  bio_str = bio
257
+ if all([first_name, last_name_str, profile_id, bio_str]):
258
  return {
259
  "status": "true",
260
  "randydev": {