Remove commented code for debugging

This commit is contained in:
2022-09-21 10:02:05 +01:00
parent cf4aa45663
commit d6d19625f3
3 changed files with 14 additions and 14 deletions

12
db.py
View File

@@ -62,12 +62,12 @@ async def store_kafka_batch(data):
KAFKA_TOPIC = index
# if key in schema:
# if isinstance(value, int):
# if schema[key].startswith("string") or schema[key].startswith(
# "text"
# ):
# msg[key] = str(value)
# if key in schema:
# if isinstance(value, int):
# if schema[key].startswith("string") or schema[key].startswith(
# "text"
# ):
# msg[key] = str(value)
body = orjson.dumps(msg)
if "ts" not in msg:
raise Exception("No TS in msg")