sh4nks 10 years ago
parent
commit
da372488ea
2 changed files with 3 additions and 2 deletions
  1. 2 1
      flaskbb/utils/fields.py
  2. 1 1
      flaskbb/utils/populate.py

+ 2 - 1
flaskbb/utils/fields.py

@@ -16,7 +16,8 @@ class BirthdayField(DateField):
     """Same as DateField, except it allows ``None`` values in case a user
     wants to delete his birthday.
     """
-    def __init__(self, label=None, validators=None, format='%Y-%m-%d', **kwargs):
+    def __init__(self, label=None, validators=None, format='%Y-%m-%d',
+                 **kwargs):
         super(DateField, self).__init__(label, validators, format, **kwargs)
 
     def process_formdata(self, valuelist):

+ 1 - 1
flaskbb/utils/populate.py

@@ -248,7 +248,7 @@ def insert_mass_data(topics=100, posts=100):
         raise "Please make sure that there are at least 2 users and 1 forum."
 
     # create 1000 topics
-    for i in range(1, topics+1):
+    for i in range(1, topics + 1):
 
         # create a topic
         topic = Topic()