Skip to content

Commit

Permalink
fixing one more call to NOW() (not available for sqlite)
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Mar 11, 2021
1 parent 6c61016 commit 8b34b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/tsc/template/tscDaemonDatabaseTripsFromFile/runner.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os
import datetime
import tscdefs
import db_manipulator

updateCmd = "INSERT INTO public.global_sumo_status VALUES('2015y_01m_19d_15h_55m_15s_386ms', 0, NOW(), 'disabled', 'error');"
updateCmd = "INSERT INTO public.global_sumo_status VALUES('2015y_01m_19d_15h_55m_15s_386ms', 0, '%s', 'disabled', 'error');" % datetime.datetime.now().isoformat()

os.chdir("data")
db_manipulator.start(tscdefs.testServer, tscdefs.get_python_tool("tsc_main.py") + ['--fake-tripfile', 'twoPersonsOnly.csv', '-l', '2', '--limit', '50000', '--sim-param', 'SUMO_TEMPLATE_FOLDER:mitte_net,SUMO_DESTINATION_FOLDER:mitte_net,DB_TABLE_ADDITIONAL_TRAFFIC:'], [open("initialState.sql"), [updateCmd]], [], [])

0 comments on commit 8b34b6c

Please sign in to comment.