~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to pybb/management/commands/pybb_resave_post.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
        for count, post in enumerate(Post.objects.all()):
16
16
            if count and not count % 1000:
17
 
                print count
 
17
                print(count)
18
18
            post.save()