Show More
@@ -2208,8 +2208,11 b' class RepoGroup(Base, BaseModel):' | |||
|
2208 | 2208 | @classmethod |
|
2209 | 2209 | def get_user_personal_repo_group(cls, user_id): |
|
2210 | 2210 | user = User.get(user_id) |
|
2211 | if user.username == User.DEFAULT_USER: | |
|
2212 | return None | |
|
2213 | ||
|
2211 | 2214 | return cls.query()\ |
|
2212 | .filter(cls.personal == true())\ | |
|
2215 | .filter(cls.personal == true()) \ | |
|
2213 | 2216 | .filter(cls.user == user).scalar() |
|
2214 | 2217 | |
|
2215 | 2218 | @classmethod |
@@ -669,7 +669,8 b' class UserModel(BaseModel):' | |||
|
669 | 669 | user_id, api_key, username) |
|
670 | 670 | return False |
|
671 | 671 | if not dbuser.active: |
|
672 |
log.debug('User `%s` is inactive, skipping fill data', |
|
|
672 | log.debug('User `%s:%s` is inactive, skipping fill data', | |
|
673 | username, user_id) | |
|
673 | 674 | return False |
|
674 | 675 | |
|
675 | 676 | log.debug('filling user:%s data', dbuser) |
General Comments 0
You need to be logged in to leave comments.
Login now