diff --git a/pronotepy/__init__.py b/pronotepy/__init__.py index bf08ea9..4086e91 100644 --- a/pronotepy/__init__.py +++ b/pronotepy/__init__.py @@ -21,7 +21,7 @@ __author__ = 'bain, Xiloe' __license__ = 'MIT' __copyright__ = 'Copyright (c) bain, Xiloe' -__version__ = '1.1.8' +__version__ = '1.2.0' from .pronoteAPI import Client, ParentClient from .dataClasses import * diff --git a/pronotepy/dataClasses.py b/pronotepy/dataClasses.py index c628ef1..c39427c 100644 --- a/pronotepy/dataClasses.py +++ b/pronotepy/dataClasses.py @@ -643,7 +643,7 @@ class ClientInfo: name of the client delegue: List[str] list of classes of which the user is a delegue of - classe: str + class_name: str name of the student's class raw_resource: dict Raw json defining the resource @@ -669,7 +669,7 @@ def delegue(self): return [] @property - def classe(self): + def class_name(self): return self.raw_resource.get('classeDEleve', {}).get('L', '') @property diff --git a/setup.py b/setup.py index e7b7fe8..fd28ebe 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ long_description = fh.read() setuptools.setup(name='pronotepy', - version='1.1.8', + version='1.2.0', description='A wrapper for the pronote "API"', url='http://www.github.com/bain3/pronotepy', author='bain',