You are viewing a single comment's thread from:

RE: SteemData Notify 代码学习二: Confirmation Worker / Code Study of SteemData Notify: Part two

in #cn7 years ago

Hi @furion, Thank you very much for providing the SteemData Notify service.

I had already explained the reasons for the different memo lengths in this article, Thank you again for the clarification.

As for Bug,

    settings = db.settings.find_one({'_id': _id})
    if settings:
        db.settings.update_one(
            {'_id': _id, 'username': op['from']},
            {'$set': {'confirmed': True}}
        )

I think it would be better to change above code to:

    settings = db.settings.find_one({'_id': _id, 'username': op['from']})
    if settings:
        db.settings.update_one(
            {'_id': _id, 'username': op['from']},
            {'$set': {'confirmed': True}}
        )

Otherwise, It may cause minor problems in some extreme cases .
I'll submit this issues on Github when I finished the study of your great code.

Coin Marketplace

STEEM 0.27
TRX 0.21
JST 0.038
BTC 96978.60
ETH 3697.93
USDT 1.00
SBD 3.87