Skip to content

Commit 5016aee

Browse files
committed
Format code
1 parent 99434c2 commit 5016aee

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

mvrxchange/mvrx_message.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ def craft_packet(message=None, length=None, buffer=None, msg_type=0):
130130

131131
@staticmethod
132132
def create_message(
133-
message, commits=None, uuid=None, file_uuid=None, ok=None, nok_reason=None, app_uuid = None,
133+
message,
134+
commits=None,
135+
uuid=None,
136+
file_uuid=None,
137+
ok=None,
138+
nok_reason=None,
139+
app_uuid=None,
134140
):
135141
if message == "MVR_JOIN_RET":
136142
response = mvrx_message.join_message_ret.copy()

mvrxchange/mvrx_tcp_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ def request_file(self, commit, path):
100100
self.send(
101101
mvrx_message.craft_packet(
102102
mvrx_message.create_message(
103-
"MVR_REQUEST", uuid=commit.station_uuid, file_uuid=commit_uuid, app_uuid = self.application_uuid
103+
"MVR_REQUEST",
104+
uuid=commit.station_uuid,
105+
file_uuid=commit_uuid,
106+
app_uuid=self.application_uuid,
104107
)
105108
)
106109
)

mvrxchange/mvrx_tcp_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def process_json_message(self, json_data, data):
180180
mvrx_message.create_message("MVR_LEAVE_RET", uuid=self.uuid)
181181
)
182182
)
183-
station_uuid = json_data.get("StationUUID") or json_data.get("FromStationUUID")
183+
station_uuid = json_data.get("StationUUID") or json_data.get(
184+
"FromStationUUID"
185+
)
184186
if station_uuid:
185187
dmx.toggle_join_MVR_Client(station_uuid, False)
186188
# NOTE: this is sending the JOIN/LEAVE 2x, because the subscribe

mvrxchange/mvrx_ws_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ def request_file(self, commit, path):
141141
commit_uuid = commit.commit_uuid
142142
self.send(
143143
mvrx_message.create_message(
144-
"MVR_REQUEST", uuid=commit.station_uuid, file_uuid=commit_uuid, app_uuid=self.application_uuid
144+
"MVR_REQUEST",
145+
uuid=commit.station_uuid,
146+
file_uuid=commit_uuid,
147+
app_uuid=self.application_uuid,
145148
)
146149
)
147150

0 commit comments

Comments
 (0)