コード例 #1
0
def fix_linkage_tags(username):
    L = getL(username)
    ls = L.objects.all()
    for l in ls:
        l.update_tags(l.get_t_display_of_sum_of_note_tags())
        l.save()
    L2 = getL2(username)
    ls2 = L2.objects.all()
    for l2 in ls2:
        l.update_tags(l.get_t_display_of_sum_of_note_tags())
        l2.save()  
コード例 #2
0
ファイル: fixdb.py プロジェクト: yejia/osl_notebook
def fix_linkage_tags(username):
    L = getL(username)
    ls = L.objects.all()
    for l in ls:
        l.update_tags(l.get_t_display_of_sum_of_note_tags())
        l.save()
    L2 = getL2(username)
    ls2 = L2.objects.all()
    for l2 in ls2:
        l.update_tags(l.get_t_display_of_sum_of_note_tags())
        l2.save()
コード例 #3
0
def fix_linkage_vote(username):
    L = getL(username)
    ls = L.objects.all()
    for l in ls:
        print 'linkage is:', l
        l.vote = l.get_vote()
        l.save()
    L2 = getL2(username)
    ls2 = L2.objects.all()
    for l2 in ls2:
        l2.vote = l2.get_vote()
        l2.save()
コード例 #4
0
ファイル: fixdb.py プロジェクト: yejia/osl_notebook
def fix_linkage_vote(username):
    L = getL(username)
    ls = L.objects.all()
    for l in ls:
        print 'linkage is:', l
        l.vote = l.get_vote()
        l.save()
    L2 = getL2(username)
    ls2 = L2.objects.all()
    for l2 in ls2:
        l2.vote = l2.get_vote()
        l2.save()