9591f3d41c416856ddb33be82694e2b2161852e6,dino/db/manager/storage.py,StorageManager,find_history,#StorageManager#Any#Any#Any#Any#,56

Before Change


        from_time = datetime.datetime.fromtimestamp(from_time_int).strftime(ConfigKeys.DEFAULT_DATE_FORMAT)
        to_time = datetime.datetime.fromtimestamp(to_time_int).strftime(ConfigKeys.DEFAULT_DATE_FORMAT)

        return self.env.storage.get_history_for_time_slice(
            room_id, user_id, from_time_int, to_time_int), from_time, to_time

    def format_time_range(self, from_time: str=None, to_time: str=None):
        if not is_blank(from_time):
            try:

After Change


            raise RuntimeError("need user ID and/or room ID")

        from_time, to_time = self.format_time_range(from_time, to_time)
        from_time_int = int(from_time.strftime("%s"))
        to_time_int = int(to_time.strftime("%s"))

        from_time = from_time.strftime(ConfigKeys.DEFAULT_DATE_FORMAT)
        to_time = to_time.strftime(ConfigKeys.DEFAULT_DATE_FORMAT)

        history = self.env.storage.get_history_for_time_slice(
            room_id, user_id, from_time_int, to_time_int)

        return history, from_time, to_time

    def format_time_range(self, from_time: str=None, to_time: str=None):
        if not is_blank(from_time):
            try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: thenetcircle/dino
Commit Name: 9591f3d41c416856ddb33be82694e2b2161852e6
Time: 2018-09-11
Author: oscar.eriks@gmail.com
File Name: dino/db/manager/storage.py
Class Name: StorageManager
Method Name: find_history


Project Name: thenetcircle/dino
Commit Name: e1c9adbe1190fcd919d66219eceb7301597bdad2
Time: 2018-09-11
Author: oscar.eriks@gmail.com
File Name: dino/db/manager/spam.py
Class Name: SpamManager
Method Name: find


Project Name: PyThaiNLP/pythainlp
Commit Name: 97f0f20b36a697c3f608749ca5094b2ca0182b9f
Time: 2017-10-30
Author: wannaphong@yahoo.com
File Name: pythainlp/date/__init__.py
Class Name:
Method Name: now