1
0
forked from ScoDoc/ScoDoc

Fix: accès aux groupes

This commit is contained in:
Emmanuel Viennet 2022-01-21 18:09:15 +01:00
parent 51933d057b
commit d64ecdffcb
2 changed files with 1 additions and 3 deletions

View File

@ -89,8 +89,6 @@ group_list = groupEditor.list
def get_group(group_id: int): def get_group(group_id: int):
"""Returns group object, with partition""" """Returns group object, with partition"""
if not isinstance(group_id, int):
raise ValueError("invalid group_id (%s)" % group_id)
r = ndb.SimpleDictFetch( r = ndb.SimpleDictFetch(
"""SELECT gd.id AS group_id, gd.*, p.id AS partition_id, p.* """SELECT gd.id AS group_id, gd.*, p.id AS partition_id, p.*
FROM group_descr gd, partition p FROM group_descr gd, partition p

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.1.30" SCOVERSION = "9.1.31"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"