From 680b552ce6d135a1730f83eb23da44ae244c2aa8 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 11 Oct 2011 12:37:14 +0200 Subject: endpoint for external dataset --- helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helper.rb') diff --git a/helper.rb b/helper.rb index 0bcde74..f45e349 100644 --- a/helper.rb +++ b/helper.rb @@ -98,7 +98,7 @@ helpers do def endpoint_option_list(max_time=3600) out = "" - tmpfile = File.join(TMP_DIR, "endpoint_option_list") + tmpfile = File.join(TMP_DIR, 'endpoint_option_list') if File.exists? tmpfile if Time.now-File.mtime(tmpfile) <= max_time f = File.open(tmpfile, 'r+') @@ -110,7 +110,7 @@ helpers do end result = endpoint_selection() if result.lines.count > 3 - f = File.new(tmpfile,"w") + f = File.new(tmpfile,'w') f.print result f.close end -- cgit v1.2.3