lib/ruote/storage/base.rb in ruote-2.1.8 vs lib/ruote/storage/base.rb in ruote-2.1.9
- old
+ new
@@ -114,25 +114,22 @@
# ats and crons
#++
def get_schedules (delta, now)
- if delta < 1.0
+ #if delta < 1.0
+ # at = now.strftime('%Y%m%d%H%M%S')
+ # get_many('schedules', /-#{at}$/)
+ #elsif delta < 60.0
+ # at = now.strftime('%Y%m%d%H%M')
+ # scheds = get_many('schedules', /-#{at}\d\d$/)
+ # filter_schedules(scheds, now)
+ #else # load all the schedules
- at = now.strftime('%Y%m%d%H%M%S')
- get_many('schedules', /-#{at}$/)
+ scheds = get_many('schedules')
+ filter_schedules(scheds, now)
- elsif delta < 60.0
-
- at = now.strftime('%Y%m%d%H%M')
- scheds = get_many('schedules', /-#{at}\d\d$/)
- filter_schedules(scheds, now)
-
- else # load all the schedules
-
- scheds = get_many('schedules')
- filter_schedules(scheds, now)
- end
+ #end
end
def put_schedule (flavour, owner_fei, s, msg)
at = if s.is_a?(Time) # at or every