diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-04-08 10:46:24 -0400 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-04-08 10:46:24 -0400 |
| commit | 658f13304f51543188e5a2ca2a4850a1901d1dde (patch) | |
| tree | 399875ef73a4b8103eace9b953065245946ef4d1 | |
| parent | f5da9106f5c7787018602850d4ad4e93e14e0798 (diff) | |
| download | jasper-client-658f13304f51543188e5a2ca2a4850a1901d1dde.tar.gz jasper-client-658f13304f51543188e5a2ca2a4850a1901d1dde.zip | |
removed 10-digit phone # requirement
| -rw-r--r-- | client/populate.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/client/populate.py b/client/populate.py index 8181dc5..7253f06 100644 --- a/client/populate.py +++ b/client/populate.py @@ -25,14 +25,10 @@ def run(): simple_request('gmail_address', 'Gmail address') profile['gmail_password'] = getpass() - # phone number clean_number = lambda s: re.sub(r'[^0-9]', '', s) phone_number = clean_number(raw_input( - "Phone number. 10 digits (no country code). Any dashes or spaces will be removed for you: ")) - while phone_number and len(phone_number) != 10: - print("Invalid phone number. Must be 10 digits.") - phone_number = clean_number(raw_input("Phone number: ")) + "Phone number. No country code. Any dashes or spaces will be removed for you: ")) if phone_number: profile['phone_number'] = phone_number |
