WebHost: fix 30 days cutoff for stats (#826)
This commit is contained in:
		
							parent
							
								
									489450d3fa
								
							
						
					
					
						commit
						e5b868e0e9
					
				| 
						 | 
				
			
			@ -17,7 +17,7 @@ from .models import Room
 | 
			
		|||
def get_db_data():
 | 
			
		||||
    games_played = defaultdict(Counter)
 | 
			
		||||
    total_games = Counter()
 | 
			
		||||
    cutoff = date.today()-timedelta(days=30000)
 | 
			
		||||
    cutoff = date.today()-timedelta(days=30)
 | 
			
		||||
    room: Room
 | 
			
		||||
    for room in select(room for room in Room if room.creation_time >= cutoff):
 | 
			
		||||
        for slot in room.seed.slots:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue