forked from Sarah/Lieb-Website
only allow polls for raids that did end in the last 7 days or newer
This commit is contained in:
parent
2fbbe2f3a7
commit
0ac8fec909
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
<label>
|
||||
Raid:
|
||||
<InputSelect @bind-Value="_chosenRaid">
|
||||
@foreach (Raid raid in _raids.OrderByDescending(r => r.StartTimeUTC))
|
||||
@foreach (Raid raid in _raids.Where(r => r.StartTimeUTC >= DateTime.UtcNow.AddDays(-7)).OrderByDescending(r => r.StartTimeUTC))
|
||||
{
|
||||
string name = $"{raid.Title} - {raid.StartTimeUTC.DateTime.ToLongDateString()}";
|
||||
<option value="@raid.RaidId">@name</option>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue