addinedu-ros-4th / iot-repo-1

IoT 프로젝트 1조 저장소. 아두이노 기반 지능형 농작물 환경 제어 시스템
1 stars 0 forks source link

[REQUEST] Add Query on iot_database.py #7

Open yoonha-ryu-96 opened 4 months ago

yoonha-ryu-96 commented 4 months ago
def watch_log(self, selected_date):
      query = "SELECT * FROM log_table WHERE date = %s"
      self.cursor.execute(query, (selected_date,))
      result = self.cursor.fetchall()
      return pd.DataFrame(result)
yoonha-ryu-96 commented 4 months ago

selected_date 가 calender에서 저장된 값입니다.