Skip to content

Commit

Permalink
Merge pull request #3806 from AllskyTeam/Days-to-keep-checks
Browse files Browse the repository at this point in the history
Days to keep checks
  • Loading branch information
EricClaeys authored Aug 12, 2024
2 parents a3d22ac + ed9672c commit 22a5852
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config_repo/options.json.repo
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@
"label" : "Days To Keep",
"type" : "integer",
"carryforward" : true,
"checkchanges" : true,
"booldependson" : "savedaytimeimages OR savenighttimeimages"
},
{
Expand Down Expand Up @@ -1806,6 +1807,7 @@
"label" : "Days To Keep on Pi Website",
"type" : "integer",
"carryforward" : true,
"checkchanges" : true,
"booldependson" : "uselocalwebsite"
},
{
Expand All @@ -1831,6 +1833,7 @@
"label" : "Days To Keep on Remote Website",
"type" : "integer",
"carryforward" : true,
"checkchanges" : true,
"booldependson" : "useremotewebsite",
"display" : false
},
Expand Down
9 changes: 9 additions & 0 deletions scripts/makeChanges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,15 @@ do
fi
;;

"daystokeep" | "daystokeeplocalwebsite" | "daystokeepremotewebsite")
if [[ ${NEW_VALUE} -gt 0 ]]; then
: # TODO: Check how many days images there are of the specified type.
# For remote website, query the website for the number (to be implemented).
# If MORE than NEW_VALUE, warn the user since those images will be deleted
# at the next endOfNight.sh run.
fi
;;

"uselogin")
if [[ ${NEW_VALUE} == "false" ]]; then
MSG="${wWARNING}WARNING: "
Expand Down

0 comments on commit 22a5852

Please sign in to comment.