Omnibus commited on
Commit
218e819
1 Parent(s): 5944f2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -127,7 +127,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
127
  pass
128
 
129
  print(timestamp)
130
- i1 = open(f"{uid}_sky.png",'rb')
131
  with open('tmp1.png','wb') as t1:
132
  t1.write(i1)
133
  try:
@@ -143,7 +143,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
143
  print (e)
144
  pass
145
  i1.close()
146
- i2 = open(f"{uid}_star.png",'rb')
147
  with open('tmp2.png','wb') as t2:
148
  t2.write(i2)
149
  try:
@@ -159,7 +159,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
159
  print (e)
160
  pass
161
  i2.close()
162
- i3 = open(f"{uid}_enemy.png",'rb')
163
  with open('tmp3.png','wb') as t3:
164
  t3.write(i3)
165
  try:
 
127
  pass
128
 
129
  print(timestamp)
130
+ i1 = open(background_im,'rb')
131
  with open('tmp1.png','wb') as t1:
132
  t1.write(i1)
133
  try:
 
143
  print (e)
144
  pass
145
  i1.close()
146
+ i2 = open(star_im,'rb')
147
  with open('tmp2.png','wb') as t2:
148
  t2.write(i2)
149
  try:
 
159
  print (e)
160
  pass
161
  i2.close()
162
+ i3 = open(enemy_im,'rb')
163
  with open('tmp3.png','wb') as t3:
164
  t3.write(i3)
165
  try: