Skip to content

Commit

Permalink
Change classe to class_name & ver bump
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 committed Jan 27, 2021
1 parent 3eb062c commit 63126fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pronotepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
4 changes: 2 additions & 2 deletions pronotepy/dataClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 63126fd

Please sign in to comment.