mirror of
				https://github.com/fspc/workstand.git
				synced 2025-10-31 08:25:35 -04:00 
			
		
		
		
	Time is hard…
This commit is contained in:
		
							parent
							
								
									8a13c0356c
								
							
						
					
					
						commit
						0450a08aaa
					
				| @ -78,7 +78,7 @@ class Bike(models.Model): | ||||
|         return self.stolen is False and self.cpic_searched_at is not None and self.serial_number is not None | ||||
| 
 | ||||
|     def can_claim(self): | ||||
|         return self.claimed_by is None or not (self.claimed_by is not None and self.last_worked_on > timezone.now() + timedelta( | ||||
|         return self.claimed_by is None or not (self.claimed_by is not None and self.last_worked_on > timezone.now() - timedelta( | ||||
|             weeks=4)) or self.last_worked_on is None | ||||
| 
 | ||||
|     def can_purchase(self): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user