MultiServer: allow null exclusions on GetDataPackage
This commit is contained in:
parent
45a6598d18
commit
50264993b0
|
@ -1285,8 +1285,9 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
|
||||||
await ctx.send_msgs(client, reply)
|
await ctx.send_msgs(client, reply)
|
||||||
|
|
||||||
elif cmd == "GetDataPackage":
|
elif cmd == "GetDataPackage":
|
||||||
exclusions = set(args.get("exclusions", []))
|
exclusions = args.get("exclusions", [])
|
||||||
if exclusions:
|
if exclusions:
|
||||||
|
exclusions = set(exclusions)
|
||||||
games = {name: game_data for name, game_data in network_data_package["games"].items()
|
games = {name: game_data for name, game_data in network_data_package["games"].items()
|
||||||
if name not in exclusions}
|
if name not in exclusions}
|
||||||
package = network_data_package.copy()
|
package = network_data_package.copy()
|
||||||
|
|
Loading…
Reference in New Issue