Add Tast to remove accountings with 0 prize
This commit is contained in:
		@@ -79,3 +79,10 @@ def process_location_data(sender, **kwargs):
 | 
				
			|||||||
                        log.error(ld.error_msg)
 | 
					                        log.error(ld.error_msg)
 | 
				
			||||||
        except:
 | 
					        except:
 | 
				
			||||||
            log.exception('', exc_info=True)
 | 
					            log.exception('', exc_info=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@receiver(post_save, sender=Accounting)
 | 
				
			||||||
 | 
					def process_accounting_data(sender, **kwargs):
 | 
				
			||||||
 | 
					    log.info('Starte die Verarbeitung der Accounting-Data-Objecte')
 | 
				
			||||||
 | 
					    data = Accounting.objects.filter(prize=0.0, reporter_uuid__isnull=True).exclude(time_to__isnull=True)
 | 
				
			||||||
 | 
					    data.delete()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user