d9da33a3e3f845cec119518ce81adab271d815a0,numerapi/numerapi.py,NumerAPI,get_payments,#NumerAPI#,325

Before Change


        for p in payments:
            p["round"]["openTime"] = \
                utils.parse_datetime_string(p["round"]["openTime"])
            p["round"]["resolveTime"] = \
                utils.parse_datetime_string(p["round"]["resolveTime"])
        return payments

    def get_transactions(self):
        all deposits and withdrawals

After Change


        payments = data["user"]["payments"]
        // convert strings to python objects
        for p in payments:
            utils.replace(p["round"], "openTime", utils.parse_datetime_string)
            utils.replace(p["round"], "resolveTime",
                          utils.parse_datetime_string)
            utils.replace(p, "usdAmount", utils.parse_float_string)
            utils.replace(p, "nmrAmount", utils.parse_float_string)
        return payments

    def get_transactions(self):
        all deposits and withdrawals
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: uuazed/numerapi
Commit Name: d9da33a3e3f845cec119518ce81adab271d815a0
Time: 2018-01-06
Author: uuazed@gmail.com
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: get_payments


Project Name: uuazed/numerapi
Commit Name: d9da33a3e3f845cec119518ce81adab271d815a0
Time: 2018-01-06
Author: uuazed@gmail.com
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: get_staking_leaderboard


Project Name: uuazed/numerapi
Commit Name: d9da33a3e3f845cec119518ce81adab271d815a0
Time: 2018-01-06
Author: uuazed@gmail.com
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: get_transactions


Project Name: uuazed/numerapi
Commit Name: d9da33a3e3f845cec119518ce81adab271d815a0
Time: 2018-01-06
Author: uuazed@gmail.com
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: get_stakes