Some queries and really low res prototype for visual analytics dashboard.
This commit is contained in:
		
							parent
							
								
									e2734a3db5
								
							
						
					
					
						commit
						d15664df43
					
				@ -223,5 +223,17 @@ class Database:
 | 
			
		||||
				property_id
 | 
			
		||||
		""")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	# Anzahl der extrahierten properties pro Exktraktionsvorgang
 | 
			
		||||
	def properties_per_extraction(self, property_id):
 | 
			
		||||
		return self.connection.sql("""
 | 
			
		||||
			SELECT
 | 
			
		||||
				COUNT(property_id),
 | 
			
		||||
				strftime(created_at, '%Y-%m-%d') AS date
 | 
			
		||||
			FROM
 | 
			
		||||
			  consultancy_d.extractions
 | 
			
		||||
			WHERE
 | 
			
		||||
			  type == 'calendar'
 | 
			
		||||
			GROUP BY
 | 
			
		||||
				date
 | 
			
		||||
			ORDER BY date ASC
 | 
			
		||||
		""""
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user