Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Arksine/moonraker
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 18, 2024
2 parents c42e766 + ccfe32f commit cca3af6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions moonraker/components/data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,10 @@ def _update_gcode_store(self, response: str) -> None:

def _store_gcode_command(self, script: str) -> None:
curtime = time.time()
for cmd in script.split('\n'):
cmd = cmd.strip()
if not cmd:
continue
if script.strip():
self.gcode_queue.append(
{'message': script, 'time': curtime, 'type': "command"})
{'message': script, 'time': curtime, 'type': "command"}
)

async def _handle_gcode_store_request(self,
web_request: WebRequest
Expand Down

0 comments on commit cca3af6

Please sign in to comment.