Skip to content

Commit

Permalink
Merge pull request #17 from CDRV/dev
Browse files Browse the repository at this point in the history
Main merge for 1.2.1 release
  • Loading branch information
SBriere authored Apr 24, 2024
2 parents bd70504 + 60886ef commit 94159ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

config_man = ConfigManager()

version_string = '1.2.0'
version_string = '1.2.1'
6 changes: 5 additions & 1 deletion libs/servers/WatchServerOpenTera.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ def initiate_opentera_transfer(self, device_name: str):

# Create session events
session_events = self.watch_logs_to_events(logs_data)
for event in session_events:
for index, event in enumerate(session_events):
if index >= 100:
logging.warning('OpenTera: More than 100 session events for session ' + session_name +
' - ignoring the rest...')
break
event['id_session'] = id_session
event['id_session_event'] = 0
response = device_com.do_post(DeviceAPI.ENDPOINT_DEVICE_SESSION_EVENTS, {'session_event': event})
Expand Down
2 changes: 1 addition & 1 deletion libs/servers/handlers/BaseAppleWatchRequestHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def do_POST(self):
return

if text_format:
fh.write(data.decode())
fh.write(data.decode(errors="ignore")) # Ignore unknown characters and errors
else:
fh.write(data)
content_size_remaining -= buffer_size
Expand Down

0 comments on commit 94159ef

Please sign in to comment.