Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Commit

Permalink
Hotfix/fix input screen validation missing (#39)
Browse files Browse the repository at this point in the history
* update validate customer journey

* bumbed up the version

* set validator to empy dict if its missing

* bumbed version

* set validator to empy dict if its missing

* bumbed version
  • Loading branch information
mwaaas authored Jan 15, 2017
1 parent 2a0ad77 commit 639f692
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ Enhancement
Version 0.0.1.6
----------------
Enhancement
- validate_ussd_journey command to fail if customer journey fails validation
- validate_ussd_journey command to fail if customer journey fails validation

Version 0.0.1.7
-----------------

BugFix
- if validation in input screen is missing proceed don't fail
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

__version__ = '0.0.1.6'
__version__ = '0.0.1.7'

setup(
name='ussd_airflow',
Expand Down
2 changes: 1 addition & 1 deletion ussd/screens/input_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def handle(self):
return UssdResponse(response_text)
else:
# validate input
validation_rules = self.screen_content.get("validators")
validation_rules = self.screen_content.get("validators", {})
for validation_rule in validation_rules:

if 'regex' in validation_rule:
Expand Down

0 comments on commit 639f692

Please sign in to comment.