Skip to content

Commit

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

from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session
Expand Down
2 changes: 2 additions & 0 deletions powerschool/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def get_constraint_values(selector, arg_value, step_size):
arg_next = arg_value + step_size
elif selector == 'termid' and arg_value < 0:
arg_next = arg_value - step_size
elif selector == 'termid' and arg_value >= 0:
arg_next = arg_value + step_size
elif 'date' in selector and type(arg_value) is str:
arg_value = datetime.datetime.strptime(arg_value, '%Y-%m-%d').date()
arg_next = arg_value + step_size
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.3"
version = "1.0.4"
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.3'
assert __version__ == '1.0.4'

0 comments on commit 7a7e35f

Please sign in to comment.