コード例 #1
0
ファイル: views.py プロジェクト: lianghanle/Stucampus
def auto_add(request): 
    ''' add lecture from notification '''
    noti_list = Notification.objects.all()
    update_lecture_from_notification(noti_list)
    return HttpResponseRedirect(reverse('lecture:manage'))
コード例 #2
0
def update_notification(days):
    new_notif = search_notifications(days)
    # dispatch new notification
    Notification.save_new_notification(new_notif)
    update_lecture_from_notification(new_notif)
    return len(new_notif)
コード例 #3
0
ファイル: views.py プロジェクト: armyja/Stucampus-1
def auto_add(request):
    ''' add lecture from notification '''
    noti_list = Notification.objects.all()
    update_lecture_from_notification(noti_list)
    return HttpResponseRedirect(reverse('lecture:manage'))