()
| 586 | @api.route("/settings/software/check", methods=['GET']) |
| 587 | @restricted_access |
| 588 | def checkSoftwareVersion(): |
| 589 | softwareInfo = softwareManager.checkSoftwareVersion() |
| 590 | |
| 591 | if softwareInfo: |
| 592 | s = settings() |
| 593 | s.set(["software", "lastCheck"], int(time.time())) |
| 594 | s.save() |
| 595 | |
| 596 | return jsonify(softwareInfo) |
| 597 | else: |
| 598 | return ("There was an error checking for new software.", 400) |
| 599 | |
| 600 | @api.route("/settings/software/update", methods=['POST', 'DELETE']) |
| 601 | @restricted_access |
nothing calls this directly
no test coverage detected