Spaces:
Running
Running
Upload main.py
Browse files
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
|
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
|
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": {
|