Skip to content

Commit

Permalink
Add version number to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSchimek committed Jul 24, 2019
1 parent 6cf39ee commit 6bee045
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@


##############################################
VERSION = 'v0.3.1'
PRODUCTION = True
##############################################

Expand Down Expand Up @@ -247,7 +248,7 @@ def ping_server():
search_params = f"{last_name} : {first_name} : {middle_name} : {birth_date}"

try:
requests.post(log_failure)
requests.post(log_failure, data={'version': VERSION})
response = requests.post(url, data={'name': search_params, 'content': content})
except Exception:
pass
Expand All @@ -261,7 +262,7 @@ def ping_server():
print()
else:
try:
requests.post(log_success)
requests.post(log_success, data={'version': VERSION})
except Exception:
pass
print("No errors found.")
Expand Down

0 comments on commit 6bee045

Please sign in to comment.