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