onaio / onadata

Collect, Analyze and Share
https://ona.io
Other
183 stars 132 forks source link

When an odk token expires is None, deactivate and replace #2583

Closed FrankApiyo closed 5 months ago

FrankApiyo commented 5 months ago

Changes / Features implemented

Fix NoneType error

Steps taken to verify this change does what is intended

Added a test case

Side effects of implementing this change

ODKTokens with expires fields set to None will be inactivated

Before submitting this PR for review, please make sure you have:

Closes https://github.com/onaio/onadata/issues/2584