Rebase reply startdate on master
This commit is contained in:
@@ -32,6 +32,6 @@ if exists "X-Virus" {
|
||||
stop;
|
||||
}
|
||||
|
||||
{% if user.reply_active and %}
|
||||
{% if user.reply_active %}
|
||||
vacation :days 1 :subject "{{ user.reply_subject }}" "{{ user.reply_body }}";
|
||||
{% endif %}
|
||||
|
||||
@@ -280,7 +280,7 @@ class User(Base, Email):
|
||||
|
||||
@property
|
||||
def reply_active(self):
|
||||
now = datetime.datetime.now()
|
||||
now = date.today()
|
||||
return (
|
||||
self.reply_enabled and
|
||||
self.reply_startdate < now and
|
||||
|
||||
Reference in New Issue
Block a user