Permalink
Browse files

reversed dates

  • Loading branch information...
1 parent 4232f48 commit baa8b8b44ad083869669dff98a0365701cab1224 @bentut committed Mar 12, 2013
@@ -14,7 +14,7 @@
ncdps = series.data_points.where(:current => false)
series.current_data_points.sort_by(&:date_string).each {|cdp| date_hash[cdp.date_string] = cdp}
%>
- <% date_hash.sort.each do |date_string, element| %>
+ <% date_hash.sort.reverse.each do |date_string, element| %>
<% if element.class == DataPoint %>
<% cdp = element %>
<% series.units ||= 1 %>
@@ -79,8 +79,9 @@ task :update_seats_links => :environment do
has_seats_text = !link.text.index("Seat Outlook for").nil?
is_excel = !["xls", "xlsx"].index(href.split(".")[-1]).nil?
is_not_already_in_downloads = seats_links.index(href.gsub("%20"," ")).nil?
+ is_not_in_exclusion_list = ["/default/assets/File/research/airline-capacity/Seat%20Outlook%202013.xls"].index(href).nil?
- if has_seats_text and is_excel and is_not_already_in_downloads
+ if has_seats_text and is_excel and is_not_already_in_downloads and is_not_in_exclusion_list
begin
puts "creating Data Source Download for "+href
file_name = href.split("/")[-1].gsub("%20"," ")
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,10 +1,10 @@
series_name,series_id,new_datapoints_added
-TDGF@HI.A,19415,20
-VRLSUSW@KAU.A,20739,1
-VRLSUSW@HAW.A,20743,1
-VRLSUSE@HON.A,20744,1
-VRLSUSE@KAU.A,20745,1
-VRLSJP@HAW.A,20755,2
-VRLSCAN@HON.A,20756,1
-VRLSCAN@KAU.A,20757,2
-TDGF@HI.Q,25689,132
+PCDMNS@HAW.D,11390,6
+PCDMNS@HI.D,11391,8
+PCDMNS@HON.D,11392,5
+PCDMNS@KAU.D,11393,4
+PCDMNS@MAU.D,11394,7
+PCITJPNS@HI.D,11395,3
+PCITNS@HI.D,11396,3
+PCITOTNS@HI.D,11397,3
+PCNS@HI.D,11398,8

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,5 +1,13 @@
name,duration,start,end
-reload_aremos,3739.08,2013-03-08 10:15:49 -1000,2013-03-08 11:18:08 -1000
-circular reference check,33.56,2013-03-08 11:19:50 -1000,2013-03-08 11:20:23 -1000
-tsd_exports,2.43,2013-03-08 11:24:21 -1000,2013-03-08 11:24:24 -1000
-complete series reload,12672.24,2013-03-08 11:20:23 -1000,2013-03-08 14:51:35 -1000
+reload_aremos,3598.85,2013-03-11 22:00:15 -1000,2013-03-11 23:00:14 -1000
+update_vis_history_links,1.72,2013-03-12 01:00:08 -1000,2013-03-12 01:00:09 -1000
+update_seat_links,6.24,2013-03-12 01:00:08 -1000,2013-03-12 01:00:14 -1000
+circular reference check,32.84,2013-03-12 01:10:06 -1000,2013-03-12 01:10:39 -1000
+complete series reload,11839.33,2013-03-12 01:10:39 -1000,2013-03-12 04:27:59 -1000
+gen_investigate_csv,296.28,2013-03-12 06:30:13 -1000,2013-03-12 06:35:09 -1000
+gen_prognoz_diffs,219.64,2013-03-12 06:40:06 -1000,2013-03-12 06:43:46 -1000
+aremos_exports,64.72,2013-03-12 06:50:06 -1000,2013-03-12 06:51:11 -1000
+tsd_exports,9.83,2013-03-12 06:58:27 -1000,2013-03-12 06:58:36 -1000
+update_seat_links,1.70,2013-03-12 13:13:33 -1000,2013-03-12 13:13:35 -1000
+update_seat_links,5.06,2013-03-12 13:14:02 -1000,2013-03-12 13:14:07 -1000
+update_seat_links,1.61,2013-03-12 13:14:19 -1000,2013-03-12 13:14:20 -1000
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit baa8b8b

Please sign in to comment.