Skip to content

Commit

Permalink
Merge pull request #89 from DewGew/DewGew-patch-1
Browse files Browse the repository at this point in the history
Update api.py
  • Loading branch information
DewGew authored Feb 2, 2024
2 parents 6ba9cb4 + 2e791f4 commit 919fafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def gateway():
flash("Devices synced with domoticz")
return "Devices synced with domoticz", 200

if custom == "restart":
elif custom == "restart":

logger.info('Restarts smarthome server')
os.execv(sys.executable, ['python'] + sys.argv)
Expand Down Expand Up @@ -101,7 +101,7 @@ def gateway():
logger.info("User " + userToRemove + " is deleted")

return "User removed", 200
else:
elif '?type' in requestedUrl[1]:

result = queryDomoticz(flask_login.current_user.username, requestedUrl[1])

Expand Down

0 comments on commit 919fafe

Please sign in to comment.