mirror of
				https://github.com/bspeice/UNCCGameDay-Server
				synced 2025-10-30 17:00:40 -04:00 
			
		
		
		
	Make sure we order the parking rating set correctly...
This commit is contained in:
		| @ -62,7 +62,7 @@ class ParkingLot(models.Model): | ||||
| 			return None | ||||
| 		else: | ||||
| 			total = sum([ ParkingRating.RATING_WEIGHTS[r.rating] | ||||
| 				for r in self.parkingrating_set.all().order_by('created')[0:10] ]) | ||||
| 				for r in self.parkingrating_set.all().order_by('-created')[0:10] ]) | ||||
| 			return total / NUM_LOTS | ||||
|  | ||||
| class ParkingRating(models.Model): | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Bradlee Speice
					Bradlee Speice