Web platform for sharing free data for ML and research

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Delete picture ratings

roundabout,
created on Wednesday, 18 September 2024, 15:54:00 (1726674840), received on Wednesday, 18 September 2024, 15:54:03 (1726674843)
Author identity: vlad <vlad.muntoiu@gmail.com>

40bc37342ef0e476fabda9e9244167585a989c15

app.py

@@ -658,6 +658,7 @@ def delete_picture(id):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                PictureLicence.query.filter_by(resource=resource).delete()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                PictureRegion.query.filter_by(resource=resource).delete()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                PictureInGallery.query.filter_by(resource=resource).delete()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            PictureRating.query.filter_by(resource=resource).delete()
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                if resource.replaces:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    resource.replaces.replaced_by = None
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                if resource.replaced_by: