![]() ![]() Update: All the function is working properly now. While data.tm_hour in fase_1 and func2_letture.leggi_tmp() <= temp_min_giorno :įunc2_letture.leggi_tmp() only reads the day when it is called the first time(but works as expected during the day), it doesn't read the new date when new day arrives The function is(data is today, ora is actual hour):Ĭursor.execute('''SELECT * FROM tmp_hr WHERE data = date('now') ORDER BY ora DESC LIMIT 1''') It works fine until midnight, then it continues reading the valuew of the same day, it doesn't change when a new day arrives. I would like to call a sqlite3 function that give me the last record registrered every 2 seconds ![]() I'm using a function inside a python program that doesn't work as expected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |