Update main.py
Browse files
main.py
CHANGED
|
@@ -58,13 +58,13 @@ async def starrail_card(id, designtype, character_id=None, character_art_url=Non
|
|
| 58 |
return await card.create(id, style=(2 if str(designtype) == "2" else 1))
|
| 59 |
else:
|
| 60 |
# Fallback to the existing process
|
| 61 |
-
async with starrailcard.Card(seeleland=True, remove_logo=True, character_art=character_art
|
| 62 |
return await card.create(id, style=(2 if str(designtype) == "2" else 1))
|
| 63 |
|
| 64 |
|
| 65 |
# Star Rail profile creation
|
| 66 |
async def starrail_profile(id):
|
| 67 |
-
async with starrailcard.Card(remove_logo=True, seeleland=True
|
| 68 |
return await card.create_profile(id, style=2)
|
| 69 |
|
| 70 |
# Genshin profile creation
|
|
|
|
| 58 |
return await card.create(id, style=(2 if str(designtype) == "2" else 1))
|
| 59 |
else:
|
| 60 |
# Fallback to the existing process
|
| 61 |
+
async with starrailcard.Card(seeleland=True, remove_logo=True, character_art=character_art) as card:
|
| 62 |
return await card.create(id, style=(2 if str(designtype) == "2" else 1))
|
| 63 |
|
| 64 |
|
| 65 |
# Star Rail profile creation
|
| 66 |
async def starrail_profile(id):
|
| 67 |
+
async with starrailcard.Card(remove_logo=True, seeleland=True) as card:
|
| 68 |
return await card.create_profile(id, style=2)
|
| 69 |
|
| 70 |
# Genshin profile creation
|