m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-07-24 01:13:54 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-07-24 01:13:54 +0200
commit56aac31bbad945a3f2237cca02e7de407d73f6db (patch)
tree67a12eb16a559a7d4c6f858b495d9e6c6be2bf4f
parentd11370d5efda4dc42505a456bd8cae0d37756583 (diff)
Reuse date
-rwxr-xr-xsunday.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunday.rb b/sunday.rb
index 8173da3..0621350 100755
--- a/sunday.rb
+++ b/sunday.rb
@@ -25,7 +25,7 @@ cgi = CGI.new
today = Date::today
thoughts_file = "#{THOUGHTS_DIR}/#{today}"
-if Date::today.sunday?
+if today.sunday?
if File.exist? thoughts_file
contents = File.read thoughts_file
else