mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Update most Python dependencies.
A lot of the dependency versions we have pinned don't have wheels for Python 3.12. Update almost all of them so we can upgrade Python. The few that weren't upgraded here are black and mypy, since those will be a bit invasive, and Pillow, which has an API change I don't want to deal with right now (I've got a commit on another machine that has already done the migration, so I'll do it later).
This commit is contained in:
@@ -81,9 +81,13 @@ class GameUpdateEventsJs(BaseModel):
|
||||
for f in events.updated_front_lines
|
||||
]
|
||||
|
||||
reset_on_map_center: LeafletPoint | None = None
|
||||
if events.reset_on_map_center is not None:
|
||||
reset_on_map_center = LeafletPoint.from_pydcs(events.reset_on_map_center)
|
||||
return GameUpdateEventsJs(
|
||||
updated_flight_positions={
|
||||
f[0].id: f[1].latlng() for f in events.updated_flight_positions
|
||||
f[0].id: LeafletPoint.from_pydcs(f[1])
|
||||
for f in events.updated_flight_positions
|
||||
},
|
||||
new_combats=new_combats,
|
||||
updated_combats=updated_combats,
|
||||
@@ -110,7 +114,7 @@ class GameUpdateEventsJs(BaseModel):
|
||||
],
|
||||
updated_iads=updated_iads,
|
||||
deleted_iads=events.deleted_iads_connections,
|
||||
reset_on_map_center=events.reset_on_map_center,
|
||||
reset_on_map_center=reset_on_map_center,
|
||||
game_unloaded=events.game_unloaded,
|
||||
new_turn=events.new_turn,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user