~widelands-dev/widelands-website/trunk

« back to all changes in this revision

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

  • Committer: kaputtnik
  • Date: 2019-06-14 18:40:56 UTC
  • mfrom: (532.1.31 widelands)
  • Revision ID: kaputtnik-20190614184056-l0ha8pm5zais9mxk
Adapted code for use with python 3.6

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()