Compare commits
No commits in common. "8112f1ed2a43100dd3d56dc473e50ebfb60b16b2" and "9cb9cfe2a135a91d8bb85dcefcc68d0203d37461" have entirely different histories.
8112f1ed2a
...
9cb9cfe2a1
@ -362,16 +362,12 @@ ASKÖ Ruderverein Donau Linz", self.name),
|
|||||||
}
|
}
|
||||||
|
|
||||||
let halfprice = if let Some(member_since_date) = &self.member_since_date {
|
let halfprice = if let Some(member_since_date) = &self.member_since_date {
|
||||||
if let Ok(member_since_date) = NaiveDate::parse_from_str(member_since_date, "%Y-%m-%d")
|
let member_since_date =
|
||||||
{
|
NaiveDate::parse_from_str(member_since_date, "%Y-%m-%d").unwrap();
|
||||||
let halfprice_startdate =
|
let halfprice_startdate = NaiveDate::from_ymd_opt(Local::now().year(), 7, 1).unwrap();
|
||||||
NaiveDate::from_ymd_opt(Local::now().year(), 7, 1).unwrap();
|
|
||||||
member_since_date >= halfprice_startdate
|
member_since_date >= halfprice_startdate
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if self.has_role(db, "Unterstützend").await {
|
if self.has_role(db, "Unterstützend").await {
|
||||||
|
Loading…
Reference in New Issue
Block a user