This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new bd286d95 Are membership applications still valid?
bd286d95 is described below

commit bd286d951ac2f2685447bb833853df50ddab6183
Author: Sebb <[email protected]>
AuthorDate: Tue Mar 12 15:07:10 2024 +0000

    Are membership applications still valid?
---
 lib/whimsy/asf/meeting-util.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/whimsy/asf/meeting-util.rb b/lib/whimsy/asf/meeting-util.rb
index 6e56e496..efd4618e 100644
--- a/lib/whimsy/asf/meeting-util.rb
+++ b/lib/whimsy/asf/meeting-util.rb
@@ -371,6 +371,12 @@ module ASF
       {hoursremain: remain, days: remain/24, hours: remain%24}
     end
 
+    # Are membership applications still valid?
+    # return: true/false
+    def self.applications_valid
+      self.application_time_remaining[:hoursremain] > 0
+    end
+
   end
 end
 

Reply via email to