WebHost: don't bother queuing empty commands
This commit is contained in:
parent
706fc19ab4
commit
3bf367d630
WebHostLib
|
@ -166,8 +166,9 @@ def host_room(room: UUID):
|
|||
if request.method == "POST":
|
||||
if room.owner == session["_id"]:
|
||||
cmd = request.form["cmd"]
|
||||
Command(room=room, commandtext=cmd)
|
||||
commit()
|
||||
if cmd:
|
||||
Command(room=room, commandtext=cmd)
|
||||
commit()
|
||||
|
||||
with db_session:
|
||||
room.last_activity = datetime.utcnow() # will trigger a spinup, if it's not already running
|
||||
|
|
Loading…
Reference in New Issue