diff --git a/development.ini b/development.ini --- a/development.ini +++ b/development.ini @@ -136,6 +136,7 @@ level = DEBUG handlers = console qualname = routes.middleware # "level = DEBUG" logs the route matched and routing variables. +propagate = 0 [logger_rhodecode] level = DEBUG diff --git a/production.ini b/production.ini --- a/production.ini +++ b/production.ini @@ -136,6 +136,7 @@ level = INFO handlers = console qualname = routes.middleware # "level = DEBUG" logs the route matched and routing variables. +propagate = 0 [logger_rhodecode] level = DEBUG diff --git a/rhodecode/config/deployment.ini_tmpl b/rhodecode/config/deployment.ini_tmpl --- a/rhodecode/config/deployment.ini_tmpl +++ b/rhodecode/config/deployment.ini_tmpl @@ -136,6 +136,7 @@ level = INFO handlers = console qualname = routes.middleware # "level = DEBUG" logs the route matched and routing variables. +propagate = 0 [logger_rhodecode] level = DEBUG diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -88,6 +88,8 @@ class Repository(Base): user = relation('User') fork = relation('Repository', remote_side=repo_id) repo_to_perm = relation('RepoToPerm', cascade='all') + stats = relation('Statistics', cascade='all') + def __repr__(self): return "" % (self.repo_id, self.repo_name) @@ -134,5 +136,5 @@ class Statistics(Base): commit_activity_combined = Column("commit_activity_combined", BLOB(), nullable=False)#JSON data languages = Column("languages", BLOB(), nullable=False)#JSON data - repository = relation('Repository') + repository = relation('Repository', single_parent=True)