--- /dev/null
+#!/usr/bin/env python
+
+#
+# Copyright (C) 2017 Samsung Electronics. Co,. Ltd.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; version 2
+# of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
+import sys
+import os
+import json
+import pprint
+
+from common.buildmonitor_db import do_query, get_value_from_query_data, do_many_query, connect_db, disconnect_db
+from common.buildmonitor_extention import BuildMonitorExtention
+
+def DTR_ver_info_fun(TOTAL_INFO, key_test_date):
+ connect_db()
+
+ query = "INSERT INTO dtr_main_info (id, test_date, tizen_release_version) VALUES(%s, %s, %s)"
+ query_var_list = []
+
+ for ver in TOTAL_INFO['tizen_version']:
+ query_var_list.append( (None, key_test_date, TOTAL_INFO[ver]) )
+
+ do_many_query(query, query_var_list)
+ pprint.pprint(do_many_query)
+
+ disconnect_db()
+
+
+def main(TOTAL_INFO):
+ key_test_date = TOTAL_INFO['test_ver_info_data']['test_date']
+
+ ## 1. DTR ver. info data (complete)
+ DTR_ver_info_fun(TOTAL_INFO['test_ver_info_data'], key_test_date, DTR_DB)
+
+ return 0
+
+if __name__ == "__main__":
+ sys.exit(main())
total_results = {}
total_results['tizen_version'] = []
total_results['url_list'] = []
- total_results['test_date'] = []
total_results['row'] = nrow
total_results['col'] = ncol
test_date = datetime.now()
- total_results['test_date'].append(test_date.strftime('%Y-%m-%d'))
+ total_results['test_date'] = test_date.strftime('%Y-%m-%d')
ver_list = []