예제 #1
0
파일: tasks.py 프로젝트: dany431/cityfusion
def inform_accounts_about_new_events_with_tags():
    # Optimize
    for account in Account.objects.all():
        inform_account_about_events_with_tags(account)

    InTheLoopSchedule.new_events.all().update(processed=True)
예제 #2
0
파일: tasks.py 프로젝트: dany431/cityfusion
def inform_accounts_about_new_events_with_tags():
    # Optimize
    for account in Account.objects.all():
        inform_account_about_events_with_tags(account)

    InTheLoopSchedule.new_events.all().update(processed=True)
예제 #3
0
파일: views.py 프로젝트: dany431/cityfusion
def in_the_loop_preview(request):
    message = inform_account_about_events_with_tags(
        Account.objects.get(user__email="*****@*****.**"))

    return HttpResponse(message)
예제 #4
0
def in_the_loop_preview(request):
    message = inform_account_about_events_with_tags(
        Account.objects.get(user__email="*****@*****.**")
    )

    return HttpResponse(message)