(dt)
| 784 | |
| 785 | # normalize dates for the amount of time the operation took |
| 786 | def normalize(dt): |
| 787 | if dt is None: |
| 788 | return None |
| 789 | elif now <= dt <= new_now: |
| 790 | return now |
| 791 | else: |
| 792 | return dt |
| 793 | |
| 794 | now = connection.exec_driver_sql("select now()").scalar() |
| 795 | connection.execute(ts_table.insert(), {"t1": now, "t2": None}) |
no outgoing calls
no test coverage detected