Skip to content

Commit

Permalink
Changes needed for old python version
Browse files Browse the repository at this point in the history
It seems that a particular way to convert namedtuple to doct does not
work on old python versions (<= 2.7.5). Need to use a way which works
across the versions
Partial-Bug: #1659180

Change-Id: Iacf7fc4e0e1e23999734e45baadf950126898f1e
  • Loading branch information
bansalnikhil committed Jan 25, 2017
1 parent 2200104 commit d30cdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opserver/opserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def redis_query_start(host, port, redis_password, qid, inp, columns):
if columns is not None:
for col in columns:
m = TableSchema(name = col.name, datatype = col.datatype, index = col.index, suffixes = col.suffixes)
col_list.append(m.__dict__)
col_list.append(m._asdict())
query_metadata = {}
query_metadata['enqueue_time'] = OpServerUtils.utc_timestamp_usec()
redish.hset("QUERY:" + qid, 'query_metadata', json.dumps(query_metadata))
Expand Down

0 comments on commit d30cdc2

Please sign in to comment.