Ejemplo n.º 1
0
def sync_events(request):
    audit = Audit()
    logs_list = audit.get_logs()
    for log_entry in logs_list:
        log = Event()
        log.set_by_key_value_list(log_entry)
        log.save()
    return HttpResponse('{"Status": "Done"}', content_type="application/json")
Ejemplo n.º 2
0
def reset_sync_events(request):
    audit = Audit()
    audit.reset_files_extensions()
    return HttpResponse('{"Status": "Done"}', content_type="application/json")