Skip to content

Commit

Permalink
added timestamp to exp spec
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Apr 16, 2013
1 parent 5c27aa7 commit 2812380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/assets/javascripts/angular/controllers/experiments.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
$scope.results = {
allowContact: true,
consented: false,
ethicsStatementViewed: false
ethicsStatementViewed: false,
pageHit: (new Date()).toISOString()
};
$scope.errors = [];
$scope.spec = {
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/experiments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def create

elsif params[:experiment] && params[:experiment] == 'Rapid Spectrogram Scanning Experiment'

File.open(File.join(EXPERIMENTS_SAVE_DIRECTORY, Time.now.to_f.to_s + '.json'), 'w') { |file|
File.open(File.join(EXPERIMENTS_SAVE_DIRECTORY, 'b' + Time.now.to_f.to_s + '.json'), 'w') { |file|
file.write post_data
}
else
Expand Down

0 comments on commit 2812380

Please sign in to comment.