Skip to content

Commit

Permalink
removing alt_id
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAls89 committed Oct 31, 2019
1 parent 1bedfe6 commit e5e8a25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##Helper function for yielding on batch fetch
def stream_json(entities):
logger.info("streaming started")
number_id = 112
#number_id = 112
try:
first = True
yield '['
Expand All @@ -24,16 +24,16 @@ def stream_json(entities):
yield ','
else:
first = False
yield json.dumps({'alt_id': f'{number_id}'})
yield ','
#yield json.dumps({'alt_id': f'{number_id}'})
#yield ','
yield json.dumps(row)
number_id + 1
#number_id + 1
yield ']'
except Exception as e:
logger.error(f"Exiting with error : {e}")
logger.info("stream ended")
##

logger = logger.Logger('xml')

class XmlParser:
Expand Down

0 comments on commit e5e8a25

Please sign in to comment.