Skip to content

Commit

Permalink
Update current_time assignment and reenable weekday check
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-k committed Dec 3, 2024
1 parent c567bae commit 4a80326
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/tasks/la_vague.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ namespace :la_vague do
task :book do
Dotenv.load

# current_time = Time.now
current_time = Time.now

# unless current_time.wday == 2
# puts "The script only runs on Tuesday. Exiting."
# exit
# end
unless current_time.wday == 2
puts "The script only runs on Tuesday. Exiting."
exit
end

# Calculate the target booking date (next week)
def calculate_booking_date
Expand Down

0 comments on commit 4a80326

Please sign in to comment.