If I do
I get this error
Is there a way to get around this error?
How do I convert those tuple objects to a datetime object (is that even possible)?
time=scheduled_time.timestamp(),
(like I did in the code below)I get this error
Error: time=scheduled_time.timestamp(),
AttributeError: 'tuple' object has no attribute 'timestamp'
because the Scheduled_time is being taken from the SQLite database.Is there a way to get around this error?
How do I convert those tuple objects to a datetime object (is that even possible)?
connection = sqlite3.connect(MainDatabase) for row in connection.execute("SELECT DateTime FROM Reminders"): scheduled_time = row print("Scheduled Time: ", scheduled_time) connection.close()
def schedule_reminder(reminder): """Schedule a reminder""" scheduler.enterabs( time=scheduled_time.timestamp(), priority=1, action=send_reminder, argument=(reminder, scheduled_time))