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

Before Change


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

        from_time_int, to_time_int = self.format_time_range(from_time, to_time)
        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


        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: 4

Non-data size: 4

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: home-assistant/home-assistant
Commit Name: a66528c64031c4ec8e2e497391f15389df888fce
Time: 2021-01-16
Author: mail@spacegaier.de
File Name: homeassistant/components/openweathermap/sensor.py
Class Name: OpenWeatherMapForecastSensor
Method Name: state


Project Name: home-assistant/home-assistant
Commit Name: 5677adc1040b7613d45a7fdd4dc9a17d592825f3
Time: 2021-01-15
Author: mail@spacegaier.de
File Name: homeassistant/components/openweathermap/sensor.py
Class Name: OpenWeatherMapForecastSensor
Method Name: state