mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
#298 added some tests for the landing page
This commit is contained in:
parent
5a8342eeb8
commit
3df6b65666
4 changed files with 60 additions and 5 deletions
|
@ -41,6 +41,6 @@ namespace PlexRequests.Core.SettingModels
|
|||
public DateTime NoticeEnd { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public bool NoticeActive => DateTime.Now > NoticeEnd || DateTime.Now < NoticeStart;
|
||||
public bool NoticeActive => DateTime.Now < NoticeEnd && DateTime.Now > NoticeStart;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue