Update app.py
Browse files
app.py
CHANGED
@@ -153,8 +153,6 @@ def save_game(name,score):
|
|
153 |
print (e)
|
154 |
pass
|
155 |
try:
|
156 |
-
#platform_out=Image.open(platform)
|
157 |
-
#platform_out.save(f"{uid}_platform.png")
|
158 |
api.upload_file(
|
159 |
path_or_fileobj="assets/platform.png",
|
160 |
path_in_repo=f"{save_data.split('main/',1)[1]}/images/platform/{game}-platform_img.png",
|
@@ -166,9 +164,6 @@ def save_game(name,score):
|
|
166 |
print (e)
|
167 |
pass
|
168 |
try:
|
169 |
-
dude_out=Image.open(dude)
|
170 |
-
dude_out.save(f"{uid}_dude.png")
|
171 |
-
|
172 |
api.upload_file(
|
173 |
path_or_fileobj="assets/dude.png",
|
174 |
path_in_repo=f"{save_data.split('main/',1)[1]}/images/dude/{game}-dude_img.png",
|
|
|
153 |
print (e)
|
154 |
pass
|
155 |
try:
|
|
|
|
|
156 |
api.upload_file(
|
157 |
path_or_fileobj="assets/platform.png",
|
158 |
path_in_repo=f"{save_data.split('main/',1)[1]}/images/platform/{game}-platform_img.png",
|
|
|
164 |
print (e)
|
165 |
pass
|
166 |
try:
|
|
|
|
|
|
|
167 |
api.upload_file(
|
168 |
path_or_fileobj="assets/dude.png",
|
169 |
path_in_repo=f"{save_data.split('main/',1)[1]}/images/dude/{game}-dude_img.png",
|