31b619fb3fd67c7936f186b0a6540142195d78a6,dino/utils/__init__.py,,is_banned,#Any#Any#,476

Before Change


    now = datetime.utcnow()

    if global_time != "":
        end = datetime.strptime(global_time, ConfigKeys.DEFAULT_DATE_FORMAT)
        return True, "banned globally for another "%s" seconds"" % str((end - now).seconds)

    if channel_time != "":
        end = datetime.strptime(channel_time, ConfigKeys.DEFAULT_DATE_FORMAT)

After Change


    now = datetime.utcnow()

    if global_time != "":
        end = datetime.fromtimestamp(int(global_time))
        return True, "banned globally for another "%s" seconds"" % str((end - now).seconds)

    if channel_time != "":
        end = datetime.fromtimestamp(int(channel_time))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: thenetcircle/dino
Commit Name: 31b619fb3fd67c7936f186b0a6540142195d78a6
Time: 2016-12-14
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: is_banned


Project Name: thenetcircle/dino
Commit Name: 2dd45509908d43ef5497fb1fb86f894672aaa1ef
Time: 2016-10-28
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: is_banned


Project Name: thenetcircle/dino
Commit Name: 5341a9e5947ef084513d9dc00b76d4a5c95cb65e
Time: 2016-11-24
Author: oscar.eriks@gmail.com
File Name: dino/db/redis.py
Class Name: DatabaseRedis
Method Name: is_banned_globally


Project Name: thenetcircle/dino
Commit Name: 5341a9e5947ef084513d9dc00b76d4a5c95cb65e
Time: 2016-11-24
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: is_banned_globally