I'm running a sqlalchemy query to get the average time per day a user has spent on our website. The query runs properly and returns a list of rowtuples that represent timedelta objects, so now I'm trying to compute the average timedelta in this list. However, since each timedelta object is of type rowtuple (?), I can't perform addition on it. Normally I can convert a timedelta to a time by running str (timedelta()), but when I try running that on my list: str(visitTimes [1]), it returns a string of '(datetime.timedelta(0, 22974),)'. How do I manipulate my list of rowtuples so that I can perform math on them?
Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---