print bad command

This commit is contained in:
John Tantalo
2014-12-27 11:05:30 -08:00
parent ad5b507702
commit 9913c2c70a
+5 -2
View File
@@ -117,7 +117,7 @@ def main():
datasetId=datasetId).execute() datasetId=datasetId).execute()
# Delete weight dataset. # Delete weight dataset.
if command == 'delete': elif command == 'delete':
googleClient.users().dataSources().datasets().delete( googleClient.users().dataSources().datasets().delete(
userId='me', userId='me',
dataSourceId=dataSourceId, dataSourceId=dataSourceId,
@@ -125,7 +125,7 @@ def main():
print "deleted data" print "deleted data"
# Upload weight dataset. # Upload weight dataset.
if command == 'patch': elif command == 'patch':
print googleClient.users().dataSources().datasets().patch( print googleClient.users().dataSources().datasets().patch(
userId='me', userId='me',
dataSourceId=dataSourceId, dataSourceId=dataSourceId,
@@ -137,6 +137,9 @@ def main():
point=googleWeightLogs, point=googleWeightLogs,
)).execute() )).execute()
else:
print "bad command"
if __name__ == '__main__': if __name__ == '__main__':
main() main()