forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -502,13 +502,10 @@ def retreive_formsemestre_from_request() -> int:
|
|||||||
group = sco_groups.get_group(args["group_id"])
|
group = sco_groups.get_group(args["group_id"])
|
||||||
formsemestre_id = group["formsemestre_id"]
|
formsemestre_id = group["formsemestre_id"]
|
||||||
elif group_ids:
|
elif group_ids:
|
||||||
if group_ids:
|
if isinstance(group_ids, str):
|
||||||
if isinstance(group_ids, str):
|
group_ids = group_ids.split(",")
|
||||||
group_id = group_ids
|
group_id = group_ids[0]
|
||||||
else:
|
group = sco_groups.get_group(group_id)
|
||||||
# prend le semestre du 1er groupe de la liste:
|
|
||||||
group_id = group_ids[0]
|
|
||||||
group = sco_groups.get_group(group_id)
|
|
||||||
formsemestre_id = group["formsemestre_id"]
|
formsemestre_id = group["formsemestre_id"]
|
||||||
elif "partition_id" in args:
|
elif "partition_id" in args:
|
||||||
partition = sco_groups.get_partition(args["partition_id"])
|
partition = sco_groups.get_partition(args["partition_id"])
|
||||||
|
Loading…
Reference in New Issue
Block a user