Commit 73c201b8 by Selah Clarity

printout date of sql run for record keeping

1 parent 188330a5
...@@ -49,7 +49,8 @@ def clarity_to_csv(sqlfilename, csvfilenames, dbconn=None): ...@@ -49,7 +49,8 @@ def clarity_to_csv(sqlfilename, csvfilenames, dbconn=None):
clarity_to_csv_inner(sqltext, csvfilenames, sqalconn) clarity_to_csv_inner(sqltext, csvfilenames, sqalconn)
end = time.time() end = time.time()
duration = end - start duration = end - start
print("Query ran and exported in {:.1f} s".format(duration)) dtstr = time.strftime('%a %I:%M%p %Y-%m-%d')
print("Query ran and exported {} in {:.1f} s".format(dtstr, duration))
......
...@@ -146,9 +146,9 @@ class TestStuff(unittest.TestCase): ...@@ -146,9 +146,9 @@ class TestStuff(unittest.TestCase):
#%% #%%
if __name__ == '__main__': if __name__ == '__main__':
# t = TestStuff() t = TestStuff()
# t.test_remove_file_not_there() # t.test_remove_file_not_there()
# t.test_integration_test() t.test_integration_test()
# t.test_comment_with_semicolon() # t.test_comment_with_semicolon()
# t.test_none_csv() # t.test_none_csv()
# t.test_unicode_error() # t.test_unicode_error()
...@@ -158,7 +158,7 @@ if __name__ == '__main__': ...@@ -158,7 +158,7 @@ if __name__ == '__main__':
# t.test_cohort() # t.test_cohort()
unittest.main() #unittest.main()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!