Skip to content

Commit

Permalink
Limit betas to < DSM 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Feb 21, 2025
1 parent 1b78b63 commit 3b1a574
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spkrepo/views/nas.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ def catalog():
build = int(request.values["build"])
except ValueError:
abort(422)
beta = request.values.get("package_update_channel") == "beta"
# DSM 7.0
if build < 40000:
beta = request.values.get("package_update_channel") == "beta"
else:
beta = False
# Check if "major" is provided
if "major" in request.values:
try:
Expand Down

0 comments on commit 3b1a574

Please sign in to comment.