Commit dab179d4 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

find products

parent 14fa8b64
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys, os import sys, os
import json
from contextlib import contextmanager from contextlib import contextmanager
import contextlib import contextlib
...@@ -36,9 +37,9 @@ def main(argv): ...@@ -36,9 +37,9 @@ def main(argv):
# with suppress_stdout(): # with suppress_stdout():
# with contextlib.redirect_stdout(None): # with contextlib.redirect_stdout(None):
list = findSentinelProducts(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5]) list = findSentinelProducts(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5])
for l in list: # for l in list:
print(l) # print(l)
json.dumps(l)
if __name__ == "__main__": if __name__ == "__main__":
main(sys.argv) main(sys.argv)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment