Suppression du délai inutile lors de l'envoi du score #20
|
@ -22,12 +22,7 @@ def new_score(world: World, e: Entity):
|
||||||
post = {"name": name[Text], "score": world[game.Player1Score]}
|
post = {"name": name[Text], "score": world[game.Player1Score]}
|
||||||
print(post)
|
print(post)
|
||||||
rq.post(f"https://{IP}/new_score", post)
|
rq.post(f"https://{IP}/new_score", post)
|
||||||
world.new_entity().set(
|
world.set(CurrentScene(thanks.THANKS))
|
||||||
TimedEvent(
|
|
||||||
1,
|
|
||||||
lambda world, entity: world.set(CurrentScene(thanks.THANKS)),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
except:
|
except:
|
||||||
print("Error with the serveur")
|
print("Error with the serveur")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue