print bad command
This commit is contained in:
+5
-2
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user