diff --git a/fitsync.py b/fitsync.py index 2d7c757..6efd0d9 100644 --- a/fitsync.py +++ b/fitsync.py @@ -117,7 +117,7 @@ def main(): datasetId=datasetId).execute() # Delete weight dataset. - if command == 'delete': + elif command == 'delete': googleClient.users().dataSources().datasets().delete( userId='me', dataSourceId=dataSourceId, @@ -125,7 +125,7 @@ def main(): print "deleted data" # Upload weight dataset. - if command == 'patch': + elif command == 'patch': print googleClient.users().dataSources().datasets().patch( userId='me', dataSourceId=dataSourceId, @@ -137,6 +137,9 @@ def main(): point=googleWeightLogs, )).execute() + else: + print "bad command" + if __name__ == '__main__': main()