parsifal: correct scripts
This commit is contained in:
parent
b37f90c983
commit
31e7502aef
|
@ -27,7 +27,7 @@ $ ./read_nursery_list.py -e dev
|
|||
|
||||
DUI
|
||||
...
|
||||
$ ./get_family_basket.py -e dev 322423
|
||||
$ ./read_family.py -e dev 322423
|
||||
|
||||
Catalogue des activités
|
||||
.......................
|
||||
|
|
|
@ -34,7 +34,11 @@ def check(args):
|
|||
|
||||
for activity in results['catalogueActivityList']:
|
||||
|
||||
if args.nature and not (
|
||||
if args.nature.lower() == 'loisir':
|
||||
if (activity['activity']['activityType'] and
|
||||
activity['activity']['activityType']['natureSpec']['code'] in ['A', 'R', 'X']):
|
||||
continue
|
||||
elif args.nature and not (
|
||||
activity['activity']['activityType'] and
|
||||
activity['activity']['activityType']['natureSpec']['code'] == args.nature):
|
||||
continue
|
||||
|
@ -75,5 +79,5 @@ if __name__ == "__main__":
|
|||
parser.add_argument('--dump', '-d', default=False, action='store_true', help='dump')
|
||||
parser.add_argument('--family', '-f', default=FAMILY_ID, help='family id')
|
||||
parser.add_argument('--person', '-P', default=PERSON_ID, help='person id')
|
||||
parser.add_argument('--nature', '-n', default='X', help='code nature, ex: "X"')
|
||||
parser.add_argument('--nature', '-n', default=None, help='code nature, ex: "X"')
|
||||
check(parser.parse_args())
|
||||
|
|
|
@ -11,7 +11,7 @@ FAMILY_ID = '322423' # NICO
|
|||
def check(args):
|
||||
utils.configure_logging(args.verbose)
|
||||
client = utils.get_client(args.env, 'Family')
|
||||
|
||||
|
||||
result = client.service.readFamily(
|
||||
dossierNumber=args.family,
|
||||
#schoolYear=
|
||||
|
|
Loading…
Reference in New Issue