Normalise fields in processing and remove invalid characters

This commit is contained in:
2022-09-21 10:01:12 +01:00
parent 48e4c07959
commit cf4aa45663
4 changed files with 33 additions and 11 deletions

5
db.py
View File

@@ -61,10 +61,7 @@ async def store_kafka_batch(data):
# schema = mc_s.schema_int
KAFKA_TOPIC = index
# normalise fields
for key, value in list(msg.items()):
if value is None:
del msg[key]
# if key in schema:
# if isinstance(value, int):
# if schema[key].startswith("string") or schema[key].startswith(