Skip to content
Snippets Groups Projects
Commit d22b62ef authored by Julian's avatar Julian
Browse files

Workaround for linter bug

Pylint non-deterministicly fails to detect that a method is overwritten later
and complains that the method does not exist. This is pretty annoying and
remains unfixed in the most recent version.
parent 917f9ecd
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,10 @@ class User(db.Model): ...@@ -152,6 +152,10 @@ class User(db.Model):
self.mail = value self.mail = value
return True return True
# Somehow pylint non-deterministically fails to detect that .update_groups is set in invite.modes
def update_groups(self):
pass
def get_next_unix_gid(): def get_next_unix_gid():
next_gid = max(current_app.config['GROUP_MIN_GID'], next_gid = max(current_app.config['GROUP_MIN_GID'],
db.session.query(func.max(Group.unix_gid + 1)).scalar() or 0) db.session.query(func.max(Group.unix_gid + 1)).scalar() or 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment