Skip to content

Commit

Permalink
fix blacklist in projection generator
Browse files Browse the repository at this point in the history
  • Loading branch information
cbini committed Aug 14, 2020
1 parent 1449418 commit c921f57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions powerschool/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.0.2'
__version__ = '1.0.3'

from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session
Expand Down Expand Up @@ -148,7 +148,7 @@ def query(self, dcid=None, body={}, **params):
metadata = self.metadata(**metadata_params)
columns = metadata.get('columns')
star_projection = ','.join(
[ c.get('name').lower() for c in columns if c.get('access') != 'NoAccess' ]
[ c.get('name').lower() for c in columns if c.get('access') not in ['NoAccess', 'BlackListNoAccess'] ]
)
params.update({'projection': star_projection})
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "powerschool"
version = "1.0.2"
version = "1.0.3"
description = "powerschool is a Python client for the PowerSchool API"
homepage = "https://github.com/TEAMSchools/powerschool"
repository = "https://github.com/TEAMSchools/powerschool"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_powerschool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == '1.0.2'
assert __version__ == '1.0.3'

0 comments on commit c921f57

Please sign in to comment.