mediachain / mediachain-indexer

search, dedupe, and media ingestion for mediachain
33 stars 14 forks source link

get send_compactsplit_to_blockchain working again #33

Closed yusefnapora closed 7 years ago

yusefnapora commented 7 years ago

this mostly just updates the SimpleTranslator to fit with the updated Translator interface.

It also adds an apply_normalizer_for_simpleclient wrapper, since the translator wants both the raw metadata and the normalized output. So it invokes the normalizer function with a single-element generator (wrapped in a function) for each record, and yields a dictionary with raw and metadata keys as expected by the SimpleTranslator.

seems to work, but so far I've just tested with one pexels compactsplit

autoencoder commented 7 years ago

Looks good. Merging.