diff --git a/kallithea/lib/celerylib/tasks.py b/kallithea/lib/celerylib/tasks.py --- a/kallithea/lib/celerylib/tasks.py +++ b/kallithea/lib/celerylib/tasks.py @@ -169,11 +169,11 @@ def get_commits_stats(repo_name, ts_min_ if k >= ts_min_y and k <= ts_max_y or skip_date_limit: co_day_auth_aggr[akc(cs.author)] = { "label": akc(cs.author), - "data": [{"time":k, - "commits":1, - "added":len(cs.added), - "changed":len(cs.changed), - "removed":len(cs.removed), + "data": [{"time": k, + "commits": 1, + "added": len(cs.added), + "changed": len(cs.changed), + "removed": len(cs.removed), }], "schema": ["commits"], } diff --git a/kallithea/model/validators.py b/kallithea/model/validators.py --- a/kallithea/model/validators.py +++ b/kallithea/model/validators.py @@ -268,7 +268,7 @@ def ValidPasswordsMatch(password_field, if value.get(password_field) != value[password_confirmation_field]: msg = self.message('password_mismatch', state) raise formencode.Invalid(msg, value, state, - error_dict={password_field:msg, password_confirmation_field: msg} + error_dict={password_field: msg, password_confirmation_field: msg} ) return _validator